Пример #1
0
        public NanoD2dPanel(D2DForm form, Point location, Size size)
        {
            BackColor     = Color.FromArgb(120, 66, 66, 66);
            this.Location = location;
            this.Size     = size;
            this.Name     = "NanoD2dPanel";

            bg = form.Device.CreateBitmapGraphics(new D2DSize(size.Width, size.Height));
        }
Пример #2
0
        public NanoGitLog(D2DForm form, Point location, Size size)
        {
            this.form     = form;
            this.Location = location;
            this.Size     = size;
            this.Name     = "NanoGitLog";

            CommitTimer = new System.Threading.Timer(GitParser, null, 0, 1000 * 60);
            // bg는 초기화 작업을 하므로 bg2 로 사용한다.
            bg = form.Device.CreateBitmapGraphics(new D2DSize(size.Width, size.Height));
        }
Пример #3
0
        public NanoD2dTitlePanel(D2DForm form, Point location, Size size)
        {
            BackColor  = Color.FromArgb(120, 66, 66, 66);
            BackColor2 = Color.FromArgb(120, 199, 172, 137);

            this.form     = form;
            this.Location = location;
            this.Size     = size;
            this.Name     = "NanoD2dPanel";

            bg = form.Device.CreateBitmapGraphics(new D2DSize(size.Width, size.Height));

            //this.OnPaint(bg, new Point(0, 0));
        }