private void mMouseUp(object sender, MouseButtonEventArgs e) { if (!GlobalVars.IsPressedFlag) { return; } GlobalVars.IsPressedFlag = false; FocusLabel.Focus(); ErrorLabel.Visibility = Visibility.Collapsed; switch (((Grid)sender).Name) { case "CreateTestBt": CreateTest(); break; case "ClearFormBt": ClearForm(); break; case "CloseFormBt": CloseForm(); break; case "DeleteTestBt": DeleteTest(); break; case "SaveBt": Save(); break; } }
private void button1_Click(object sender, EventArgs e) { FocusLabel.Focus(); OnClickExitButton(this, new 战绩追踪_C_Sharp.TitleClickArgs() { which = 1 }); }
private void button3_Click(object sender, EventArgs e) { FocusLabel.Focus(); OnClickExitButton(this, new HEIF_Utility.TitleClickArgs() { which = 3 }); }
private void OpenTest() { FocusLabel.Focus(); this.Hide(); var Katakana = new Main(); Katakana.Closed += (s, args) => this.Show(); Katakana.Show(); }
private void RichEasyWires_Enter(object sender, EventArgs e) { FocusLabel.Focus(); }
private void button3_MouseLeave(object sender, EventArgs e) { button3.BackgroundImage = global::战绩追踪_C_Sharp.Properties.Resources.Minimize; FocusLabel.Focus(); }