Ejemplo n.º 1
0
        protected override void OnStart(IDictionary <SetType, List <Tomato> > imageSets)
        {
            var controller = new Controller(imageSets);
            var view       = new TomatoViewer(windowSize);

            controller.StartApplication(view);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Start an application based on the view. This method sets the controller and view in each object.
 /// </summary>
 /// <param name="view"></param>
 public void StartApplication(TomatoViewer view)
 {
     this.View       = view;
     view.Controller = this;
     View.Show();
 }