private void showChartInfo_ItemClick(object sender, ItemClickEventArgs e) { BeginLoadChart(lastChartName, lastChartLoader); if (infoForm != null && infoForm.Visible) { infoForm.UpdateData(chart, seats.Rows); infoForm.Activate(); } else { infoForm = SeatingChartInfo.Show(MdiParent, chart, seats.Rows); } }
public static SeatingChartInfo Show(IWin32Window parent, ParsedSeatingChart chart, IEnumerable<SeatingReservation> seats) { SeatInfo[] data = CreateDataSource(chart, seats); if (!data.Any()) { XtraMessageBox.Show("This seating chart has no issues!", "Shomrei Torah Billing", MessageBoxButtons.OK, MessageBoxIcon.Information); return null; } else { var form = new SeatingChartInfo(data); form.Show(parent); return form; } }
public static SeatingChartInfo Show(IWin32Window parent, ParsedSeatingChart chart, IEnumerable <SeatingReservation> seats) { SeatInfo[] data = CreateDataSource(chart, seats); if (!data.Any()) { XtraMessageBox.Show("This seating chart has no issues!", "Shomrei Torah Billing", MessageBoxButtons.OK, MessageBoxIcon.Information); return(null); } else { var form = new SeatingChartInfo(data); form.Show(parent); return(form); } }