C# Class RealTimeVoiceRecognizer.MainWindow

Interaction logic for Main Window
Inheritance: Window
Show file Open project: optiklab/RealTimeVoiceRecognizer

Public Methods

Method Description
MainWindow ( ) : System

Constructor.

Private Methods

Method Description
About_Click ( object sender, RoutedEventArgs e ) : void
AddCommand_Click ( object sender, RoutedEventArgs e ) : void
AutomaticallySaveTextCheckBox_Checked ( object sender, RoutedEventArgs e ) : void

AutomaticallySaveTextCheckBox_Unchecked ( object sender, RoutedEventArgs e ) : void

Border_MouseLeftButtonDown ( object sender, MouseButtonEventArgs e ) : void
CancelIt_Click ( object sender, RoutedEventArgs e ) : void
DeviceSelectControl_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void

LanguagesSelectControl_SelectionChanged ( object sender, SelectionChangedEventArgs e ) : void

MainWindow_Closing ( object sender, CancelEventArgs e ) : void

Stops all running processes.

MinimizeIt_Click ( object sender, RoutedEventArgs e ) : void
OpenLogFile_Click ( object sender, RoutedEventArgs e ) : void

OpenTempFolder_Click ( object sender, RoutedEventArgs e ) : void

Recognizer_VoiceRecognized ( object sender, RealTimeVoiceRecognizer.VoiceRecognizedEventArgs e ) : void

Shows recognized text to UI.

RemoveCommand_Click ( object sender, RoutedEventArgs e ) : void
StopStartSwitch_Click ( object sender, RoutedEventArgs e ) : void

Starts or stops recognizing process.

TemporaryFolderPath_TextChanged ( object sender, TextChangedEventArgs e ) : void

Timer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Update elapsed time in UI.

_InitSettings ( ) : void

_IsEnvironmentGood ( ) : bool

Checks is current environment, like Internet or Recording devices, are good to work. If not: state labels become highlighted by colors.

_IsMicrophoneOn ( ) : bool

Check if any recording device is on.

_OpenFile ( ) : string

Method shows to user OpenFileDialog and returns path to the file.

_OpenFolder ( ) : string

Method shows to user Open Folder dialog and returns path to the folder.

_StartTimeCounters ( ) : void

Starts time counters.

_StopTimeCounters ( ) : void

Stops time counters.

Method Details

MainWindow() public method

Constructor.
public MainWindow ( ) : System
return System