Example #1
0
 private void ChangeUser()
 {
     if (
         MessageForm.Show(EidssMessages.Get("mbSureToSwitchUser"),
                          EidssMessages.Get("msgMessage"),
                          MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) ==
         DialogResult.Yes)
     {
         //if (BaseForm.SaveAllOpenedForms == true)
         //{
         Login();
         //}
     }
 }
Example #2
0
 public static bool ConfirmMessage(string msg)
 {
     return
         (MessageForm.Show(msg, BvMessages.Get("Warning"), MessageBoxButtons.YesNo, MessageBoxIcon.Question).Equals(DialogResult.Yes));
 }
Example #3
0
 public static DialogResult ConfirmMessage3Buttons(IWin32Window owner, string msg, string caption)
 {
     MessageForm.ParentWindowHandle = owner;
     return(MessageForm.Show(msg, caption, MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question));
 }
Example #4
0
 public static bool ConfirmMessage(IWin32Window owner, string msg)
 {
     MessageForm.ParentWindowHandle = owner;
     return
         (MessageForm.Show(msg, BvMessages.Get("Warning"), MessageBoxButtons.YesNo, MessageBoxIcon.Question).Equals(DialogResult.Yes));
 }
Example #5
0
 /// <summary>
 /// </summary>
 /// <param name="msg"></param>
 /// <param name="caption"></param>
 /// <returns></returns>
 public static bool ConfirmMessage(string msg, string caption)
 {
     return(MessageForm.Show(msg, caption, MessageBoxButtons.YesNo, MessageBoxIcon.Question).Equals(DialogResult.Yes));
 }