protected override void OnStartup(StartupEventArgs e) { if (Keyboard.IsKeyDown(Key.LeftCtrl)) { var q = new Querying.wdwQuery(); q.Show(); } else { var mainView = new XplorerMainWindow(); mainView.Show(); } }
void OpenQuery(object sender, RoutedEventArgs e) { XbimXplorer.Querying.wdwQuery qw = new Querying.wdwQuery(); qw.ParentWindow = this; qw.Show(); }