Example #1
0
        private void ucBanHang_Click(object sender, EventArgs e)
        {
            Account.Instance.userName = this.lbUser.Text;
            Form_Infor2 f = new Form_Infor2()
            {
                TopLevel = false, TopMost = true
            };

            f.Dock = DockStyle.Fill;
            this.parent.panel2.Controls.Clear();
            this.parent.panel2.Controls.Add(f);
            f.Show();
        }
Example #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            Account.Instance.userName = Account.Instance.FindUsername(lbID.Text);
            Form_Infor2 f = new Form_Infor2()
            {
                TopLevel = false, TopMost = true
            };

            f.Dock = DockStyle.Fill;
            this.parent.panel2.Controls.Clear();
            this.parent.panel2.Controls.Add(f);
            f.Show();
        }