Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        private void OnDialogAvailable(DialogEventArgs e)
        {
            var handler = DialogAvailable;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 private void OnDialogAvailable(DialogEventArgs e)
 {
     var handler = DialogAvailable;
     if (handler != null) handler(this, e);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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);
 }