Ejemplo n.º 1
0
 public ErrorDialogViewModel(string errorMessage)
 {
     ErrorMessage           = errorMessage;
     IgnoreCommand          = new CommandHandler(() => DialogClosing?.Invoke(this, false), true);
     ExitCommand            = new CommandHandler(() => DialogClosing?.Invoke(this, true), true);
     CopyToClipboardCommand = new CommandHandler(() => Clipboard.SetText(ErrorMessage), true);
 }
Ejemplo n.º 2
0
 void Dialog_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (e.CloseReason == CloseReason.MdiFormClosing)
     {
         EveryFileExplorerUtil.DisableFileDependencyDialog();
     }
     if (DialogClosing != null)
     {
         e.Cancel = !DialogClosing.Invoke(this);
     }
 }
Ejemplo n.º 3
0
 protected virtual void OnDialogClosing(EventArgs e)
 {
     DialogClosing?.Invoke(this, e);
 }
Ejemplo n.º 4
0
 private void OnDialogClosing(DialogEventArgs e)
 {
     DialogClosing?.Invoke(this, e);
 }