コード例 #1
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);
            }
        }
コード例 #2
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;
            }
        }
コード例 #3
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);
            }
        }