private void OpenExec(object sender, ExecutedRoutedEventArgs e) { e.Handled = true; /* if ( mSelected.Any() ) { RaceThread.RaceInfo = mRace; ThreadStart threadDelegate = new ThreadStart(RaceThread.Run); Thread newThread = new Thread(threadDelegate); newThread.Start(); } */ Window W = new MainWindow(mRace); W.ShowDialog(); }
public static void Run() { MainWindow Window = new MainWindow(RaceInfo); Window.ShowDialog(); }