コード例 #1
0
 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 }));
     }
 }
コード例 #2
0
 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 });
     }
 }