private void AboutMenuOption_OnClick(object sender, RoutedEventArgs e) { var about = new HelperWindows.AboutWindow(); about.ShowDialog(); }
private void Speech_SpeechRecognized(object sender, SpeechRecognizedEventArgs e) { if (e.Result.Text == "add feed") { InterfaceDataSource.AddFeedToTree(); } else if (e.Result.Text == "add channel") { InterfaceDataSource.AddChannelToTree(); } else if (e.Result.Text == "save") { var save = new HelperWindows.SaveWindow(); save.ShowDialog(); } else if (e.Result.Text == "load") { var load = new HelperWindows.LoadWindow(); load.ShowDialog(); } else if (e.Result.Text == "help") { var help = new HelperWindows.HelpWindow(); help.ShowDialog(); } else if (e.Result.Text == "about") { var about = new HelperWindows.AboutWindow(); about.ShowDialog(); } else if (e.Result.Text == "exit") { this.Close(); } else { SpeechRead?.Invoke(sender, e.Result.Text); } }