//Image piCVong2 = Image.FromFile(Application.StartupPath + "Res//diemtongV2.png");
        //Image piCVong3 = Image.FromFile(Application.StartupPath + "Res//diemtongV3.png");
        public override void Graphicialize()
        {
            this.BackgroundImage          = (Image)(LIB.ResizeImage((Image)(myBackGround), this.Width, this.Height));
            this.lblDiemDoiNhat.BackColor = lblDiemDoiBa.BackColor = lblDiemDoiNhi.BackColor = lblDoiBa.BackColor = lblDoiNhat.BackColor = lblDoiNhi.BackColor = Color.Transparent;

            base.Graphicialize();
        }
 internal void LblFullScreen_Click(object p, EventArgs empty)
 {
     LIB.MakeFullScreen(this, null);
     ResizeControls();
     RelocatingControls();
     Graphicialize();
 }
        public void RelocatingAndResizingControls(string type)
        {
            if (type == "nohinh")
            {
                ResizeControls();
                RelocatingControls();
                return;
            }

            ResizeControls();
            RelocatingControls();
            if (myPic != null)
            {
                pic.Image = LIB.ResizeImage(myPic, pic.Width, pic.Height);
            }

            if (ShowABCD)
            {
                lblABCD.Left = (int)(this.Width * 0.7);

                return;
            }

            pic.Left = (this.Width - pic.Width) / 2;
        }
 public void LblFullScreen_Click(object sender, EventArgs e)
 {
     lblFullScreen.ForeColor = Color.FromArgb(255, 253, 208);
     LIB.MakeFullScreen(this, null);
     ResizeControls();
     RelocatingControls();
     Graphicialize();
 }
Beispiel #5
0
 public override void Graphicialize()
 {
     this.BackgroundImage    = (Image)(LIB.ResizeImage((Image)(myBackGround), this.Width, this.Height));
     this.lblDapAn.BackColor = System.Drawing.Color.FromArgb(0, ((int)(((byte)(152)))), ((int)(((byte)(155)))), ((int)(((byte)(182)))));
     rtbNoiDungCau.BackColor = Color.FromArgb(0, ((int)(((byte)(199)))), ((int)(((byte)(202)))), ((int)(((byte)(223)))));
     // tableLayoutPanel1.BackColor = Color.FromArgb(0, 0, 0, 0);
     lblDoi1.BackColor       = lblDoi2.BackColor = lblDoi3.BackColor = Color.FromArgb(0, 0, 0, 0);
     lblDiemDoi1.BackColor   = lblDiemDoi2.BackColor = lblDiemDoi3.BackColor = Color.FromArgb(0, 0, 0, 0);
     lblFullScreen.BackColor = lblFullScreen.ForeColor = Color.FromArgb(0, 15, 23, 75);
 }