public DescriptionPrinting(EventDB eventDB, SymbolDB symbolDB, Controller controller, DescriptionPrintSettings descPrintSettings)
     : base(QueryEvent.GetEventTitle(eventDB, " "), controller, descPrintSettings.PageSettings, descPrintSettings.BoxSize, descPrintSettings.CountKind, descPrintSettings.Count)
 {
     this.eventDB           = eventDB;
     this.symbolDB          = symbolDB;
     this.descPrintSettings = descPrintSettings;
 }
 public DescriptionPrinting(EventDB eventDB, SymbolDB symbolDB, Controller controller, DescriptionPrintSettings descPrintSettings)
     : base(QueryEvent.GetEventTitle(eventDB, " "), controller, descPrintSettings.PageSettings, descPrintSettings.BoxSize, descPrintSettings.CountKind, descPrintSettings.Count)
 {
     this.eventDB = eventDB;
     this.symbolDB = symbolDB;
     this.descPrintSettings = descPrintSettings;
 }
Beispiel #3
0
        private void printDescriptionsMenu_Click(object sender, EventArgs e)
        {
            // Initialize dialog
            // CONSIDER: shouldn't have GetEventDB here! Do something different.
            PrintDescriptions printDescDialog = new PrintDescriptions(controller.GetEventDB());
            printDescDialog.controller = controller;
            printDescDialog.PrintSettings = descPrintSettings;

            // show the dialog, on success, print.
            if (printDescDialog.ShowDialog(this) == DialogResult.OK) {
                // Save the settings for the next invocation of the dialog.
                descPrintSettings = printDescDialog.PrintSettings;
                controller.PrintDescriptions(descPrintSettings, false);
            }

            // And the dialog is done.
            printDescDialog.Dispose();
        }