public PlotterController(Plotter plotter)
 {
     this.view = plotter;
     this.creationController = new PlotCreationController();
     this.manipulationController = new PlotManipulationController();
     this.ListenToView();
 }
 public PlotPointViewRenderer(Plotter plotter, PlotPoint point)
 {
     this.Point = point;
     this.getPlotHeight = plotter.getPlotHeight;
     this.getPlotWidth = plotter.getPlotWidth;
     point.PropertyChanged += new PropertyChangedEventHandler(point_PropertyChanged);
     this.SetValue(PlotPointViewRenderer.XProperty, this.TransformedPointX);
     this.SetValue(PlotPointViewRenderer.YProperty, this.TransformedPointY);
     this.AddToStoryBoard();
 }
Beispiel #3
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     Plotter view = new Plotter();
     this.controller = new PlotterController(view);
     this.RootVisual = view;
 }