private void buttonUpdateSection_Click(object sender, EventArgs e) { if (this.currentSection == null) { MessageBox.Show("This conference hasn't sections yet."); return; } var window = new SectionDetails(conference.Id, ctrl, this, currentSection); window.Show(); }
private void buttonAddSection_Click(object sender, EventArgs e) { if (ctrl.getPCMembersAvailableForSectionChair(conference.Id).ToList().Count == 0) { MessageBox.Show("There are no available PC Members to be Section Chair."); return; } var window = new SectionDetails(this.conference.Id, this.ctrl, this, null); window.Show(); }