Ejemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ToDoListView view = new ToDoListView();

            //new Controller1(view);
            //new Controller2(view);
            new Controller3(view);
            Application.Run(view);
        }
 /// <summary>
 /// Creates a Controller for the provided view
 /// </summary>
 public Controller2(ToDoListView view)
 {
     this.view             = view;
     userToken             = "0";
     itemList              = new List <string>();
     showOnlyCompleted     = false;
     showAll               = false;
     view.CancelPressed   += Cancel;
     view.RegisterPressed += Register;
     view.SubmitPressed   += Submit;
     view.DeletePressed   += Delete;
     view.DonePressed     += Done;
     view.FilterChanged   += Filter;
 }