Ejemplo n.º 1
0
 public ToolBar(int ID, PrinterView printerview, LibraryView libraryview, ModelAdjustmentsDialog adjustmentsDialog, SlicerConnectionBase slicer_connection)
 {
     this.adjustmentsDialog = adjustmentsDialog;
     this.printerview       = printerview;
     this.libraryview       = libraryview;
     this.slicer_connection = slicer_connection;
 }
Ejemplo n.º 2
0
 public PrintDialogMainWindow(int ID, GUIHost host, PrinterView printerview, SpoolerConnection spooler_connection, PopupMessageBox message_box, ModelLoadingManager modelloadingmanager, SlicerConnectionBase slicer_connection, RecentPrintsTab recentPrints, SettingsManager controller)
     : base(ID)
 {
     this.host = host;
     this.spooler_connection = spooler_connection;
     this.slicer_connection  = slicer_connection;
     spooler_connection.OnSelectedPrinterChanged += new SpoolerConnection.SelectedPrinterChangedCallback(OnSelectedPrinterChanged);
     SetSize(750, 500);
     CenterHorizontallyInParent = true;
     CenterVerticallyInParent   = true;
     frames.Add(new PrintDialogFrame(1000, host, printerview, spooler_connection, message_box, modelloadingmanager, controller, this));
     frames.Add(new SlicingFrame(1001, host, printerview, message_box, controller, this));
     frames.Add(new PreparingToStartFrame(1002, host, printerview, message_box, recentPrints, this));
     frames.Add(new PreSlicingFrame(1003, host, this));
     frames.Add(new AdvancedPrintSettingsFrame(1004, host, message_box, controller, this));
     frames.Add(new PrintingToFileFrame(1005, host, message_box, this));
     foreach (IPrintDialogFrame frame in frames)
     {
         frame.Visible = false;
         AddChildElement(frame);
     }
 }