public FlowChartController(FlowChartPage view, ViewAbstractFactory viewFactory) { this.view = view; this.ViewFactory = viewFactory; this.Model = new FlowChartModel(); this.inputTool = new DefaultInputTool(Model, view); this.view.Model = Model; this.memoryStorage = new MemoryStorage(); this.inputTool.Add += new Action <BaseComponent>(inputTool_Add); this.inputTool.DblClick += new Action <float, float>(inputTool_DblClick); this.inputTool.Delete += new Action <BaseComponent>(inputTool_Delete); this.inputTool.Scroll += new Action <float, float, float>(inputTool_Scroll); this.inputTool.Zoom += new Action <float, float, float>(inputTool_Zoom); this.inputTool.Select += new Action <BaseComponent>(inputTool_Select); this.ZoomFactor = 1.0f; }
public ViewDirectorVisitor(ViewAbstractFactory ViewFactory, Font font) { this.ViewFactory = ViewFactory; this.font = font; }