/// <summary>
 /// 确认按钮
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void userButton_Confirm_Click(object sender, EventArgs e)
 {
     if (!(bool)GetResult?.Invoke(textBox_Name.Text, (int)numericUpDown_Cols.Value, (int)numericUpDown_Rows.Value))
     {
         MessageBox.Show("Template file already exist!Please recheck");
         return;
     }
     this.Close();
 }
Ejemplo n.º 2
0
 private void Worker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     object[] arr = e.Result as object[];
     GetResult?.Invoke(arr[0].ToString(), arr[1].ToString(), arr[2].ToString());
 }
Ejemplo n.º 3
0
 private void TrueResult(GetResult _fun, int m)
 {
     _fun?.Invoke(m);
 }
Ejemplo n.º 4
0
 protected virtual void OnGetResult(GetEventsArgs e)
 {
     GetResult?.Invoke(this, e);
 }