public void Show(PrintDialogWidgetFrames frame, PrintJobDetails details) { Visible = true; Enabled = true; SlicerConnection.SlicerSettings.ConfigureFromPrinterData(details.printer); host.GlobalChildDialog += (this); ActivateFrame(frame, details); }
public void ActivateFrame(PrintDialogWidgetFrames frame, PrintJobDetails details) { if (current_frame != null) { previous = (PrintDialogWidgetFrames)current_frame.ID; current_frame.Visible = false; current_frame.OnDeactivate(); current_frame = null; } current_frame = frames[(int)(frame - 1000)]; current_frame.Visible = true; current_frame.OnActivate(details); }