Exemplo n.º 1
0
        public override bool OnAskYesNo(string message)
        {
            Form parentForm = UiClient.Instance.MainWindow;

            if (parentForm == null)
            {
                parentForm = UiClient.Instance.SplashWindow;
            }

            if (parentForm.InvokeRequired)
            {
                OnAskYesNoDelegate inv = new OnAskYesNoDelegate(this.OnAskYesNo);

                return((bool)parentForm.Invoke(inv, new object[] { message }));
            }
            else
            {
                return(GuiUtils.MessageBoxAskYesNo(parentForm, message));
            }
        }
Exemplo n.º 2
0
 public bool ShowMessageAskYesNo(string message)
 {
     return(GuiUtils.MessageBoxAskYesNo(this, message));
 }