private void SetWindow2() { advancedControls = new AdvancedControls(); //allows data transfer from options menu advancedControls.SubmitClicked += new EventHandler(advancedControls_SubmitClicked); }
private void Button_Click(object sender, RoutedEventArgs e) { try { advancedControls.Show(); } catch { advancedControls = new AdvancedControls(); advancedControls.Show(); } attackTimer.Enabled = false; releaseTimer.Enabled = false; myTimer.Enabled = false; RunProg.Content = "Start"; }