コード例 #1
0
        private void DgvGiaoVien_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            int    i    = dgvGiaoVien.CurrentRow.Index;
            string magv = dgvGiaoVien.Rows[i].Cells["MaGiaoVien"].Value.ToString();

            string[]    namBD = (dgvGiaoVien.Rows[i].Cells["NgayChuyenDen"].Value.ToString()).Split('/');
            string[]    namKT = dtpNgayXem.Text.Split('/');
            TrangCaNhan f     = new TrangCaNhan(magv, namBD[2], namKT[2]);

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
コード例 #2
0
        private void barButtonItem30_ItemClick(object sender, ItemClickEventArgs e)
        {
            TrangCaNhan TCN = new TrangCaNhan(this.maVB);

            addpage(fr_main, "Trang cá nhân", TCN);
        }