Example #1
0
        private void OnCancelClicked(object sender, EventArgs e)
        {
            OnCancel();
            TaskPaneArgs args = new TaskPaneArgs();

            Canceled?.Invoke(this, args);
            Visible = args.KeepOpen;
        }
Example #2
0
        private void OnOkClicked(object sender, EventArgs e)
        {
            OnOk();
            TaskPaneArgs args = new TaskPaneArgs();

            Confirmed?.Invoke(this, args);
            Visible = args.KeepOpen;
        }