Exemple #1
0
        private void addGroupBtn_Click(object sender, EventArgs e)
        {
            CRUDGroup modifyGroup = new CRUDGroup();

            modifyGroup.crudGID.Text            = null;
            modifyGroup.crudGGroupCode.Text     = null;
            modifyGroup.crudGStudyYear.Text     = null;
            modifyGroup.crudGStudentsCount.Text = null;
            modifyGroup.crudGStudyForm.Text     = null;
            modifyGroup.crudGDelete.Visible     = false;
            modifyGroup.FormClosed += UpdateGroupGrid_FormClosed;
            modifyGroup.ShowDialog();
        }
Exemple #2
0
        private void groupGrid_DoubleClick(object sender, EventArgs e)
        {
            CRUDGroup modifyGroup = new CRUDGroup();

            modifyGroup.crudGID.Text            = this.groupGrid.CurrentRow.Cells[0].Value?.ToString() ?? null;
            modifyGroup.crudGGroupCode.Text     = this.groupGrid.CurrentRow.Cells[1].Value?.ToString() ?? null;
            modifyGroup.crudGStudyYear.Text     = this.groupGrid.CurrentRow.Cells[2].Value?.ToString() ?? null;
            modifyGroup.crudGStudentsCount.Text = this.groupGrid.CurrentRow.Cells[3].Value?.ToString() ?? null;
            modifyGroup.crudGStudyForm.Text     = this.groupGrid.CurrentRow.Cells[4].Value?.ToString() ?? null;
            modifyGroup.crudGStudyFormID.Text   = this.groupGrid.CurrentRow.Cells[5].Value?.ToString() ?? null;
            modifyGroup.FormClosed += UpdateGroupGrid_FormClosed;
            modifyGroup.ShowDialog();
        }