private void loginDone(DataTable data)
        {
            Program.StartWorkTime = DateTime.Now;
            Program.CurrentUserID = data.Rows[0].Field <string>("UserID");
            this.Hide();
            Form f = new FormQuanLy();

            if (data.Rows[0].Field <string>("IDFunct") == Constant.FUNCTION_ID_NHAN_VIEN)
            {
                f = new FormNhanVien();
            }
            f.Closed += (s, args) => this.Close();
            f.Show();
        }
示例#2
0
        private void button2_Click(object sender, EventArgs e)
        {
            FormQuanLy formQL = new FormQuanLy(txtTV.Text);

            formQL.Show();
        }