public Model(ProModelInterface model, InParamsExt inParams, OutParams previewParams, OptionParams optionParams) { this.model = model; this.inParams = inParams; this.previewParams = previewParams; this.optionParams = optionParams; }
public ProView(ProControllerInterface controller, ControlParams controlParams, OptionParams optionParams, ViewParams viewParams, ProModelInterface model) { this.controller = controller; this.controlParams = controlParams; this.optionParams = optionParams; this.viewParams = viewParams; this.model = model; model.registerPreviewObserver(this); model.registerModelObserver(this); }
public ProController(ProModelInterface model) { this.model = model; loadOptionParams(); viewParams.init(controlParams); viewParams.altMode = (Control.ModifierKeys == Keys.Shift); view = new ProView(this, controlParams, optionParams, viewParams, model); view.create(); controlParams.registerObserver(this); printing.setPrintContentInterface(this); view.mainWindow.CommandBindings.Add( new CommandBinding(ApplicationCommands.New, new ExecutedRoutedEventHandler(clearExecute))); view.mainWindow.CommandBindings.Add( new CommandBinding(ApplicationCommands.Open, new ExecutedRoutedEventHandler(loadExecute))); view.mainWindow.CommandBindings.Add( new CommandBinding(ApplicationCommands.Save, new ExecutedRoutedEventHandler(saveAsExecute))); view.mainWindow.CommandBindings.Add( new CommandBinding(ApplicationCommands.PrintPreview, new ExecutedRoutedEventHandler(printPreviewExecute))); view.mainWindow.CommandBindings.Add( new CommandBinding(ApplicationCommands.Print, new ExecutedRoutedEventHandler(printExecute))); view.mainWindow.CommandBindings.Add( new CommandBinding(ApplicationCommands.Close, new ExecutedRoutedEventHandler(exitExecute))); checkUpdates(); showAbout(true); }
public TransModel(ProModelInterface model, InParamsExt inParams, OutParams previewParams, OptionParams optionParams) : base(model, inParams, previewParams, optionParams) { mincon = 0.001f; }
public PreviewModel(ProModelInterface model, InParamsExt inParams, OptionParams optionParams) : base(model, inParams, null, optionParams) { }