private void butOK_Click(object sender, EventArgs e) { List <int> reqNums = new List <int>(); for (int i = 0; i < TableAttached.Rows.Count; i++) { reqNums.Add(PIn.PInt(TableAttached.Rows[i]["ReqStudentNum"].ToString())); } ReqStudents.SynchApt(AptNum, reqNums); DialogResult = DialogResult.OK; }
private void butOK_Click(object sender, EventArgs e) { ReqStudents.SynchApt(reqsAttached, _listReqsRemoved, AptNum); DialogResult = DialogResult.OK; }