private void Button_Confirm_Click(object sender, RoutedEventArgs e)
 {
     Data.Name        = TextBox_Name.Text;
     Data.Description = TextBox_Description.Text;
     Data.Text        = TextBox_Command.Text;
     PopupDialog.OnConfirmInvoke();
     PopupDialog.Close();
 }
 protected void Update()
 {
     if (Input.GetKeyDown(KeyCode.C))
     {
         PopupDialog.Close();
     }
     if (Input.GetKeyDown(KeyCode.Alpha0))
     {
         OpenNoOptions();
     }
     if (Input.GetKeyDown(KeyCode.Alpha1))
     {
         OpenOneOption();
     }
     if (Input.GetKeyDown(KeyCode.Alpha2))
     {
         OpenTwoOptions();
     }
 }
Exemple #3
0
 private void Button_Cancel_Click(object sender, RoutedEventArgs e)
 {
     PopupDialog.OnCancelInvoke();
     PopupDialog.Close();
 }
Exemple #4
0
 private void Button_Confirm_Click(object sender, RoutedEventArgs e)
 {
     PopupDialog.Close();
 }
Exemple #5
0
 private void Button_Redo_Click(object sender, RoutedEventArgs e)
 {
     ButtonRedoAction?.Invoke();
     PopupDialog.Close();
 }