Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the Presenter class.
 /// </summary>
 /// <param name="view">View interface</param>
 /// <param name="factory">Path finder factory service</param>
 public Presenter(IView view, IPathFinderFactory factory)
 {
     this.View = view;
      this.View.Presenter = this;
      this.View.SetDrawing(this.Surface);
      this.CurrentMouseState = MouseState.Default;
      this.Factory = factory;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the Mainform class.
 /// </summary>
 /// <param name="factory">Path finder factory</param>
 public MainForm(IPathFinderFactory factory)
 {
     this.InitializeComponent();
      this.Presenter = new Presenter(this, factory);
 }