/// <summary> /// Show method is overloaded which is used to display message /// and this is static method so that we don't need to create /// object of this class to call this method. /// </summary> /// <param name="messageText"></param> internal static void Show(string messageText) { frmShowMessage frmMessage = new frmShowMessage(); frmMessage.setMessage(messageText); frmMessage.addIconImage(enumMessageIcon.Information); frmMessage.addButton(enumMessageButton.OK); frmMessage.ShowDialog(); }
internal static void Show(string messageText, string messageTitle, enumMessageIcon messageIcon, enumMessageButton messageButton) { frmShowMessage frmMessage = new frmShowMessage(); frmMessage.setMessage(messageText); frmMessage.Text = messageTitle; frmMessage.addIconImage(messageIcon); frmMessage.addButton(messageButton); frmMessage.ShowDialog(); }