private void btnAdd_Click(object sender, EventArgs e) { frmGroupItem f = new frmGroupItem(); if (f.ShowDialog() == DialogResult.OK) { Fill(); } }
private void btnEdit_Click(object sender, EventArgs e) { if (IsSelectedRow()) { int groupID = GetSelectedGroup().GroupID; frmGroupItem f = new frmGroupItem(groupID ); //f.TblGroup = GetSelectedGroup(); if (f.ShowDialog() == DialogResult.OK) { Fill(); } } }