Esempio n. 1
0
        private void btnChiTiet_Click(object sender, EventArgs e)
        {
            DataRow  row  = gridView1.GetFocusedDataRow();
            FormUser form = new FormUser(row["IDUser"].ToString(), true);

            form.ShowDialog();
        }
Esempio n. 2
0
        private void bbtnThemTK_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            TabCreating(xtraTabControl1, "Trang Chủ", "TrangChu", _frmTrangChu, 0);
            FormUser f = new FormUser(true);

            _frmTrangChu.TabCreating("Thêm User", "ThemUser", f, imageCollection16x16, 3);
        }
Esempio n. 3
0
        private void bbtnTTTaiKhoan_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            TabCreating(xtraTabControl1, "Trang Chủ", "TrangChu", _frmTrangChu, 0);
            FormUser f;

            if (_quyen == 1)
            {
                f = new FormUser(_id, true);
            }
            else
            {
                f = new FormUser(_id, false);
            }
            _frmTrangChu.TabCreating(f.Text, f.Name, f, imageCollection16x16, 17);
        }
Esempio n. 4
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FormUser f = new FormUser(false);

            f.ShowDialog();
        }