public DialogResult ShowMessage(ButtonPatern buttonPatern, MessageKind messageKind, string message, bool logout, bool autosize, MessageBoxDefaultButton defaultButton) { if (logout) { ULogClass.LogWrite(string.Format("{0} {1}", messageKind.GetType().ToString(), message)); } MessageDialogSimpleForm form = new MessageDialogSimpleForm { AutoSize = autosize }; return form.ShowMessage(buttonPatern, messageKind, message, defaultButton); }