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)); } }
public bool ShowMessageAskYesNo(string message) { return(GuiUtils.MessageBoxAskYesNo(this, message)); }