protected DialogResult ShowCustomMessageBox(string msg, string title, MessageBoxButtons buttons, Nova.Windows.Forms.MessageBoxIconType icon) { if (!this.InvokeRequired) { return(CustomMessageBox.ShowCustomMessageBox(this.ParentForm, msg, title, buttons, icon)); } else { ShowCustomMessageBoxDele cs = new ShowCustomMessageBoxDele(ShowCustomMessageBox); return((DialogResult)this.Invoke(cs, new object[] { msg, title, buttons, icon })); } }
protected DialogResult ShowCustomMessageBox(string msg, string title, MessageBoxButtons buttons, Nova.Windows.Forms.MessageBoxIconType icon) { if (!this.InvokeRequired) { return CustomMessageBox.ShowCustomMessageBox(this, msg, title, buttons, icon); } else { ShowCustomMessageBoxDele cs = new ShowCustomMessageBoxDele(ShowCustomMessageBox); return (DialogResult)this.Invoke(cs, new object[] { msg, title, buttons, icon }); } }