Esempio n. 1
0
        private void icoBtnTrangchu_Click(object sender, EventArgs e)
        {
            ActiveBtn(sender, RGBColor.color1);
            UserControl us = new frmTrangchu();

            loadForm(us);
            customizeDesing();
        }
Esempio n. 2
0
        public frmMain(string username)
        {
            InitializeComponent();

            //Set default value
            customizeDesing();
            leftPan      = new Panel();
            leftPan.Size = new Size(12, 40);
            panel1.Controls.Add(leftPan);
            this.DoubleBuffered    = true;
            pnlUserSetting.Visible = false;
            lblUsername.Text       = username;
            setPermission(username);
            UserControl us = new frmTrangchu();

            lblTittle.Text = icoBtnTrangchu.Text;
            iconCurrentChildForm.IconChar = icoBtnTrangchu.IconChar;
            loadForm(us);
            timer1.Start();
        }