예제 #1
0
 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;
 }
예제 #2
0
 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;
     }
 }
예제 #3
0
 /// <summary>
 /// 设置 <see cref="Utility.Controls.LighterMessageBox"/> 的一些自定义信息.
 /// </summary>
 /// <param name="mbCustomIf"><see cref="Utility.Controls.LighterMessageBox"/> 自定义信息结构</param>
 public static void SetMessageBoxCustomDefine(MessageBoxCustomInfo mbCustomIf)
 {
     MessageBoxModule.SetMessageBoxCustomDefine(mbCustomIf);
 }
예제 #4
0
		/// <summary>
		/// 设置 <see cref="Utility.Controls.LighterMessageBox"/> 的一些自定义信息.
		/// </summary>
		/// <param name="mbCustomIf"><see cref="Utility.Controls.LighterMessageBox"/> 自定义信息结构</param>
		public static void SetMessageBoxCustomDefine( MessageBoxCustomInfo mbCustomIf )
		{
			MessageBoxModule.SetMessageBoxCustomDefine( mbCustomIf );
		}
예제 #5
0
		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;
		}
예제 #6
0
		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;
			}
		}