private void NewRider(object sender, EventArgs e) { if (!IsNew) { RiderListForm riderList = new RiderListForm(Year.ClubID, Year.Year); riderList.FormClosing += new FormClosingEventHandler(this.RefreshOnClose); riderList.Visible = true; } }
private void ViewRider(object sender, EventArgs e) { if (backNoListBox.SelectedItems.Count != 0) { int riderNo = -1; riderNo = Convert.ToInt32(backNoListBox.SelectedItems[0].SubItems[1].Text); if (riderNo >= 0) { RiderListForm riderList = new RiderListForm (Year.ClubID, Year.Year, riderNo); riderList.FormClosing += new FormClosingEventHandler(this.RefreshOnClose); riderList.Visible = true; } } }
private void ViewRider(object sender, EventArgs e) { if (AbandonChanges()) { int riderNo = VerifyExistsRiderNo(riderComboBox.SelectedValue.ToString()); if (riderNo > 0) { RiderListForm form = new RiderListForm(ActiveBackNo.ClubID, ActiveBackNo.Year, riderNo); form.Visible = true; this.Close(); } } }