Exemple #1
0
        private DialogResult ShowInformationDialog(string text)
        {
            var arg = new DialogEventArgs(text, "Launcher information", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, 0);

            OnDialogAvailable(arg);
            return(arg.Result);
        }
Exemple #2
0
        private void OnDialogAvailable(DialogEventArgs e)
        {
            var handler = DialogAvailable;

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