private DialogResult ShowInformationDialog(string text) { var arg = new DialogEventArgs(text, "Launcher information", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 0); OnDialogAvailable(arg); return(arg.Result); }
private void OnDialogAvailable(DialogEventArgs e) { var handler = DialogAvailable; if (handler != null) { handler(this, e); } }
void launcherApp_DialogAvailable(object sender, DialogEventArgs e) { e.Result = MessageBox.Show(GetCurrentWindow(), e.Text, e.Caption, e.Buttons, e.Icon, e.DefaultButton, e.Options); }
private void OnDialogAvailable(DialogEventArgs e) { var handler = DialogAvailable; if (handler != null) handler(this, e); }
private DialogResult ShowInformationDialog(string text) { var arg = new DialogEventArgs(text, "Launcher information", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 0); OnDialogAvailable(arg); return arg.Result; }