Пример #1
0
 private void SaveMenuItem_OnClick(object sender, RoutedEventArgs e)
 {
     var save = new HelperWindows.SaveWindow();
     save.ShowDialog();
 }
Пример #2
0
 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);
     }
 }