예제 #1
0
        protected override void OnRenderGroundFormControlBox(FormControlBoxRenderEventArgs e)
        {
            SkinForm     form     = e.Form;
            Graphics     g        = e.Graphics;
            Rectangle    rect     = e.ClipRectangle;
            ControlState state    = e.ControlBoxtate;
            bool         isActive = e.IsActive;

            bool ifHasMinimizeBox = form.ControlBox && form.MinimizeBox;
            bool ifHasMaximizeBox = form.ControlBox && form.MaximizeBox;

            switch (e.ControlBoxStyle)
            {
            case ControlBoxStyle.Maximize:
                DrawGroundFormMaximizeBox(
                    g,
                    rect,
                    state,
                    isActive,
                    ifHasMinimizeBox,
                    form.WindowState == FormWindowState.Maximized);
                break;

            case ControlBoxStyle.Minimize:
                DrawGroundFormMinimizeBox(
                    g,
                    rect,
                    state,
                    isActive);
                break;

            case ControlBoxStyle.Close:
                DrawGroundFormCloseBox(
                    g,
                    rect,
                    state,
                    isActive,
                    ifHasMinimizeBox,
                    ifHasMaximizeBox);
                break;
            }
        }
예제 #2
0
 public FormBackgroundRenderEventArgs(SkinForm form, Graphics g, Rectangle clipRect) : base(g, clipRect)
 {
     _form = form;
 }
예제 #3
0
 public abstract void InitGroundForm(SkinForm form);
예제 #4
0
 public abstract Region CreateRegion(SkinForm form);
예제 #5
0
 public void Dispose()
 {
     _form = null;
 }
예제 #6
0
 public MmcControlBoxManager(SkinForm form)
 {
     _form = form;
 }
예제 #7
0
 public override void InitGroundForm(SkinForm form)
 {
     form.BackColor = StyleSheet.BaseColor;
 }