/// <summary> /// SkinForm /// </summary> /// <param name="SF"></param> public override void FormStyle(SkinForm SF) { SF.BaseColor = this.ChangeHexColorToDecimalColor("#7FC1FF"); SF.BackColor = SF.BaseColor; SF.BorderColor = this.ChangeHexColorToDecimalColor("#365FA7"); SF.InnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.CaptionActiveColor = this.ChangeHexColorToDecimalColor("#4AA1FE"); SF.CaptionDeleteActiveColor = this.ChangeHexColorToDecimalColor("#83CFFF"); SF.CaptionTextColor = this.ChangeHexColorToDecimalColor("#275897"); SF.ControlBoxActiveColor = this.ChangeHexColorToDecimalColor("#3282CD"); SF.ControlBoxDeactiveColor = this.ChangeHexColorToDecimalColor("#5995DA"); SF.ControlBoxHoverColor = this.ChangeHexColorToDecimalColor("#256097"); SF.ControlBoxInnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.ControlBoxPressedColor = this.ChangeHexColorToDecimalColor("#1B4370"); SF.ControlCloseBoxHoverColor = this.ChangeHexColorToDecimalColor("#1916D4"); SF.ControlCloseBoxPressedColor = this.ChangeHexColorToDecimalColor("#1144AB"); }
/// <summary> /// SkinForm /// </summary> /// <param name="SF"></param> public override void FormStyle(SkinForm SF) { SF.BaseColor = this.ChangeHexColorToDecimalColor("#FFF07F"); SF.BackColor = SF.BaseColor; SF.BorderColor = this.ChangeHexColorToDecimalColor("#A78B36"); SF.InnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.CaptionActiveColor = this.ChangeHexColorToDecimalColor("#FED14A"); SF.CaptionDeleteActiveColor = this.ChangeHexColorToDecimalColor("#FFE083"); SF.CaptionTextColor = this.ChangeHexColorToDecimalColor("#977727"); SF.ControlBoxActiveColor = this.ChangeHexColorToDecimalColor("#CDAC33"); SF.ControlBoxDeactiveColor = this.ChangeHexColorToDecimalColor("#DAC259"); SF.ControlBoxHoverColor = this.ChangeHexColorToDecimalColor("#977725"); SF.ControlBoxInnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.ControlBoxPressedColor = this.ChangeHexColorToDecimalColor("#705E1B"); SF.ControlCloseBoxHoverColor = this.ChangeHexColorToDecimalColor("#D54216"); SF.ControlCloseBoxPressedColor = this.ChangeHexColorToDecimalColor("#AB3511"); }
/// <summary> /// SkinForm /// </summary> /// <param name="SF"></param> public override void FormStyle(SkinForm SF) { SF.BaseColor = this.ChangeHexColorToDecimalColor("#9BFF7F"); SF.BackColor = SF.BaseColor; SF.BorderColor = this.ChangeHexColorToDecimalColor("#36A73E"); SF.InnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.CaptionActiveColor = this.ChangeHexColorToDecimalColor("#3FDB4F"); SF.CaptionDeleteActiveColor = this.ChangeHexColorToDecimalColor("#83FFA6"); SF.CaptionTextColor = this.ChangeHexColorToDecimalColor("#2B9727"); SF.ControlBoxActiveColor = this.ChangeHexColorToDecimalColor("#32CD32"); SF.ControlBoxDeactiveColor = this.ChangeHexColorToDecimalColor("#59DA86"); SF.ControlBoxHoverColor = this.ChangeHexColorToDecimalColor("#25973E"); SF.ControlBoxInnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.ControlBoxPressedColor = this.ChangeHexColorToDecimalColor("#1B7026"); SF.ControlCloseBoxHoverColor = this.ChangeHexColorToDecimalColor("#7BD416"); SF.ControlCloseBoxPressedColor = this.ChangeHexColorToDecimalColor("#4FAB11"); }
/// <summary> /// SkinForm /// </summary> /// <param name="SF"></param> public override void FormStyle(SkinForm SF) { SF.BaseColor = this.ChangeHexColorToDecimalColor("#CECECE"); SF.BackColor = SF.BaseColor; SF.BorderColor = this.ChangeHexColorToDecimalColor("#726E61"); SF.InnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.CaptionActiveColor = this.ChangeHexColorToDecimalColor("#D8D6D0"); SF.CaptionDeleteActiveColor = this.ChangeHexColorToDecimalColor("#F4F3F0"); SF.CaptionTextColor = this.ChangeHexColorToDecimalColor("#929291"); SF.ControlBoxActiveColor = this.ChangeHexColorToDecimalColor("#929087"); SF.ControlBoxDeactiveColor = this.ChangeHexColorToDecimalColor("#D7D5CA"); SF.ControlBoxHoverColor = this.ChangeHexColorToDecimalColor("#363433"); SF.ControlBoxInnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.ControlBoxPressedColor = this.ChangeHexColorToDecimalColor("#716C6B"); SF.ControlCloseBoxHoverColor = this.ChangeHexColorToDecimalColor("#363433"); SF.ControlCloseBoxPressedColor = this.ChangeHexColorToDecimalColor("#716C6B"); }
/// <summary> /// SkinForm /// </summary> /// <param name="SF"></param> public override void FormStyle(SkinForm SF) { SF.BaseColor = this.ChangeHexColorToDecimalColor("#F8F8FF"); SF.BackColor = SF.BaseColor; SF.BorderColor = this.ChangeHexColorToDecimalColor("#377EA8"); SF.InnerBorderColor = this.ChangeHexColorToDecimalColor("#FAFAFA"); SF.CaptionActiveColor = this.ChangeHexColorToDecimalColor("#F5F5F5"); SF.CaptionDeleteActiveColor = this.ChangeHexColorToDecimalColor("#F5F5F5"); SF.CaptionTextColor = this.ChangeHexColorToDecimalColor("#286F98"); SF.ControlBoxActiveColor = this.ChangeHexColorToDecimalColor("#3399CC"); SF.ControlBoxDeactiveColor = this.ChangeHexColorToDecimalColor("#58ACDA"); SF.ControlBoxHoverColor = this.ChangeHexColorToDecimalColor("#257297"); SF.ControlBoxInnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.ControlBoxPressedColor = this.ChangeHexColorToDecimalColor("#1B4370"); SF.ControlCloseBoxHoverColor = this.ChangeHexColorToDecimalColor("#1B546F"); SF.ControlCloseBoxPressedColor = this.ChangeHexColorToDecimalColor("#1B546F"); }
/// <summary> /// SkinForm /// </summary> /// <param name="SF"></param> public override void FormStyle(SkinForm SF) { SF.BaseColor = this.ChangeHexColorToDecimalColor("#FF7FF9"); SF.BackColor = SF.BaseColor; SF.BorderColor = this.ChangeHexColorToDecimalColor("#A7368D"); SF.InnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.CaptionActiveColor = this.ChangeHexColorToDecimalColor("#FE4AB9"); SF.CaptionDeleteActiveColor = this.ChangeHexColorToDecimalColor("#FF83DA"); SF.CaptionTextColor = this.ChangeHexColorToDecimalColor("#972790"); SF.ControlBoxActiveColor = this.ChangeHexColorToDecimalColor("#CD32B8"); SF.ControlBoxDeactiveColor = this.ChangeHexColorToDecimalColor("#DA59D1"); SF.ControlBoxHoverColor = this.ChangeHexColorToDecimalColor("#972579"); SF.ControlBoxInnerBorderColor = this.ChangeHexColorToDecimalColor("#FFFFFF"); SF.ControlBoxPressedColor = this.ChangeHexColorToDecimalColor("#701B6A"); SF.ControlCloseBoxHoverColor = this.ChangeHexColorToDecimalColor("#D41632"); SF.ControlCloseBoxPressedColor = this.ChangeHexColorToDecimalColor("#AB111E"); }
/// <summary> /// /// </summary> /// <param name="e"></param> protected override void OnRenderSkinFormControlBox(SkinFormControlBoxRenderEventArgs e) { SkinForm form = e.Form; Graphics g = e.Graphics; Rectangle rect = e.ClipRectangle; FormControlBoxState state = e.ControlBoxState; bool Active = e.Active; bool minimizeBox = form.ControlBox && form.MinimizeBox; bool maximizeBox = form.ControlBox && form.MaximizeBox; switch (e.ControlBoxStyle) { case FormControlBoxStyle.Close: RenderSkinFormCloseBoxInternal( g, rect, state, Active, minimizeBox, maximizeBox); break; case FormControlBoxStyle.Maximize: RenderSkinFormMaximizeBoxInternal( g, rect, state, Active, minimizeBox, form.WindowState == FormWindowState.Maximized); break; case FormControlBoxStyle.Minimize: RenderSkinFormMinimizeBoxInternal( g, rect, state, Active); break; } }
public abstract Region CreateRegion(SkinForm SForm);
/// <summary> /// /// </summary> /// <param name="SForm"></param> public override void InitSkinForm(SkinForm SForm) { SForm.BackColor = ColorTable.BaseColor; }
/// <summary> /// Show message /// </summary> /// <param name="Message"></param> /// <param name="MsgContentAlignment"></param> /// <returns></returns> public static DialogResult INFO(this SkinForm SF, string Message, ContentAlignment MsgContentAlignment) { return(SF.INFO(Message, MessageBoxButtons.OK, MsgContentAlignment)); }
/// <summary> /// Show message /// </summary> /// <param name="Message"></param> /// <returns></returns> public static DialogResult INFO(this SkinForm SF, string Message) { return(SF.INFO(Message, MessageBoxButtons.OK)); }
/// <summary> /// 寫入成 Log /// </summary> /// <param name="Mode"></param> /// <param name="Message">Log 訊息</param> public static void WriteLog(this SkinForm SF, Log.Mode.LogMode Mode, string Message) { Log.WriteLog(Mode, Message); }
/// <summary> /// /// </summary> /// <param name="Message"></param> /// <param name="DialogMode"></param> /// <param name="StyleMode"></param> /// <returns></returns> public static DialogResult DialogBox(this SkinForm SF, string Message, DialogBoxForm.DialogMode DialogMode, DialogBoxForm.StyleMode StyleMode) { return(SF.DialogBox(Message, DialogMode, StyleMode, ContentAlignment.MiddleCenter)); }
/// <summary> /// Show message /// </summary> /// <param name="Message"></param> /// <param name="MsgBoxBtn"></param> /// <returns></returns> public static DialogResult INFO(this SkinForm SF, string Message, MessageBoxButtons MsgBoxBtn) { return(SF.INFO(Message, MsgBoxBtn, ContentAlignment.MiddleCenter)); }
public abstract void FormStyle(SkinForm SF);
public abstract void InitSkinForm(SkinForm SForm);
/// <summary> /// /// </summary> /// <param name="Owner"></param> public FormControlBoxManager(SkinForm Owner) { this._Owner = Owner; }
/// <summary> /// 寫入成 Log /// </summary> /// <param name="Message">Log 訊息</param> public static void WriteLog(this SkinForm SF, string Message) { Log.WriteLog(global::Log.Mode.LogMode.INFO, Message); }