Beispiel #1
0
        private void btnStuDetail_Click(object sender, EventArgs e)
        {
            SimpleButton     btnDetails = (SimpleButton)sender;
            frmAddNewStudent frmDeStu   = new frmAddNewStudent();

            frmDeStu.btnSender = btnDetails.Text;
            frmDeStu.vRow      = gvTrainees.GetDataRow(gvTrainees.FocusedRowHandle);
            DialogResult result = frmDeStu.ShowDialog();

            loadHocVien();
        }
Beispiel #2
0
        private void btnStuAddNew_Click(object sender, EventArgs e)
        {
            //txtStuCode.Text = "HV" + Utilities.quydinh.LaySTT(gvTrainees.RowCount + 1);
            //frmAddNewStudent  = new frmAddNewStudent();
            //frmDeStu.sGetGridViewIndex = gvTrainees.RowCount + 1;
            //DialogResult result = frmDeStu.ShowDialog();


            SimpleButton     btnAddNews = (SimpleButton)sender;
            frmAddNewStudent frmDeStu   = new frmAddNewStudent();

            frmDeStu.btnSender         = btnAddNews.Text;
            frmDeStu.sGetGridViewIndex = gvTrainees.RowCount + 1;
            DialogResult result = frmDeStu.ShowDialog();

            loadHocVien();
        }