예제 #1
0
        private void p(object sender, PaintEventArgs e)
        {
            Graphics g = e.Graphics;

            c = new GrapchHelper(g);
            c.Draw(b, a);
            g.Dispose();
        }
예제 #2
0
        private void qc(object sender, EventArgs e)
        {
            a = Width;
            b = Height;
            Graphics g = this.CreateGraphics();

            c = new GrapchHelper(g);
            c.Draw(b, a);
            g.Dispose();
            c.Dispose();
        }
예제 #3
0
        public PluginWindow()
        {
            InitializeComponent();
            using (g = this.CreateGraphics())
            {
                Global.env.Set(g);
            }
            a = Width;
            b = Height;
            Graphics gq = this.CreateGraphics();

            c = new GrapchHelper(gq);
            c.Draw(b, a);
            g.Dispose();
            c.Dispose();
        }
예제 #4
0
        private void l(object sender, EventArgs e)
        {
            a = Width;
            b = Height;
            Graphics g = Graphics.FromHwnd(Handle);

            c = new GrapchHelper(g);
            c.Draw(b, a);
            g.Dispose();
            c.Dispose();
            foreach (Control item in Controls)
            {
                item.Width  = Width / 4;
                item.Height = Height - 100;
            }
        }
예제 #5
0
        protected override void OnSizeChanged(EventArgs e)
        {
            base.OnSizeChanged(e);
            a = Width;
            b = Height;
            Graphics g = Graphics.FromHwnd(Handle);

            c = new GrapchHelper(g);
            c.Draw(b, a);
            g.Dispose();
            c.Dispose();
            foreach (Control item in Controls)
            {
                if (item != this)
                {
                    item.Anchor = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;
                }
            }
        }
예제 #6
0
 public void Set(Graphics g)
 {
     _g = g;
     gh = new GrapchHelper(g);
 }