private void Execute(object parameter) { if ((string)parameter == "Vision") { var window = new VisionWindow(); window.ShowDialog(); } else if ((string)parameter == "Speech") { var window = new SpeechWindow(); window.ShowDialog(); } else if ((string)parameter == "Knowledge") { var window = new KnowledgeWindow(); window.ShowDialog(); } else if ((string)parameter == "Language") { var window = new LanguageWindow(); window.ShowDialog(); } else if ((string)parameter == "Search") { var window = new SearchWindow(); window.ShowDialog(); } }
private void HandleStartup(object sender, StartupEventArgs e) { var window = new VisionWindow(); var contextAssembler = new VisionContextAssembler(); window.AssembleContext(contextAssembler); window.Show(); }