Ejemplo n.º 1
0
 public Model(ProModelInterface model, InParamsExt inParams, OutParams previewParams, OptionParams optionParams)
 {
     this.model         = model;
     this.inParams      = inParams;
     this.previewParams = previewParams;
     this.optionParams  = optionParams;
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public TransModel(ProModelInterface model, InParamsExt inParams, OutParams previewParams, OptionParams optionParams)
     : base(model, inParams, previewParams, optionParams)
 {
     mincon = 0.001f;
 }
Ejemplo n.º 5
0
 public PreviewModel(ProModelInterface model, InParamsExt inParams, OptionParams optionParams)
     : base(model, inParams, null, optionParams)
 {
 }