示例#1
0
 private static void PromptUser(string Prompt, MessageBoxButtons buttons = MessageBoxButtons.OK, MessageBoxIcon icon = MessageBoxIcon.Information, string Title = null, Form ParentFrm = null)
 {
     if (!suppressAdditionalMessages)
     {
         OtherFunctions.Message(Prompt, buttons, icon, Title, ParentFrm);
     }
 }
示例#2
0
 public static void LookupDevice(ExtendedForm parentForm, Device device)
 {
     if (device != null)
     {
         if (!FormIsOpenByGuid(typeof(ViewDeviceForm), device.Guid))
         {
             new ViewDeviceForm(parentForm, device);
         }
     }
     else
     {
         OtherFunctions.Message("Device not found.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, "Error", parentForm);
     }
 }