public static void ResetMessageBoxCustomDefine() { CTRL_BUTTON_STYLE = Button.StyleProperty.DefaultMetadata.DefaultValue as Style; MB_CUSTOMINFO = default(MessageBoxCustomInfo); B_USED_CUSTOM_BRUSHES = false; B_USED_CUSTOM_SIZE = false; }
public static void SetMessageBoxCustomDefine(MessageBoxCustomInfo mbCustomIf) { if (!default(MessageBoxCustomInfo).Equals(mbCustomIf)) { MessageBoxModule.MB_CUSTOMINFO = mbCustomIf; MessageBoxModule.B_USED_CUSTOM_BRUSHES = true; MessageBoxModule.B_USED_CUSTOM_SIZE = true; } else { MessageBoxModule.MB_CUSTOMINFO = default(MessageBoxCustomInfo); MessageBoxModule.B_USED_CUSTOM_BRUSHES = false; MessageBoxModule.B_USED_CUSTOM_SIZE = false; } }
/// <summary> /// 设置 <see cref="MIV.Bus.WPF.UIShell.Controls.MessageBox"/> 的一些自定义信息. /// </summary> /// <param name="mbCustomIf"><see cref="MIV.Bus.WPF.UIShell.Controls.MessageBox"/> 自定义信息结构</param> public static void SetMessageBoxCustomDefine(MessageBoxCustomInfo mbCustomIf) { MessageBoxModule.SetMessageBoxCustomDefine(mbCustomIf); }