private void addEvent_Click(object sender, EventArgs e) { AddEventForm ef = new AddEventForm(); ef.ShowDialog(); eventGrid.DataSource = getEvents(); }
private void addEvent_Click(object sender, EventArgs e) { DataGridViewRow row = scheduleGrid.CurrentRow; int sch_no = int.Parse(row.Cells[0].Value.ToString()); int proj_id = int.Parse(row.Cells[1].Value.ToString()); AddEventForm ef = new AddEventForm(sch_no, proj_id); ef.ShowDialog(); }
private void addEvent_Click(object sender, EventArgs e) { AddEventForm ef = new AddEventForm(); ef.ShowDialog(); }