Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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);
            }
        }