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

            Views.EditItem editItem = new Views.EditItem();
            Presenter      p        = new Presenter(model, view);//, editItem);

            Application.Run(view);
        }
Ejemplo n.º 2
0
 private void PresenterNewWindow(string[] labels, string[] values, int index)
 {
     if (values != null)
     {
         Views.EditItem window = new Views.EditItem(labels, values, index);
         window.SaveObject += PresenterEditObject;
         window.ShowDialog();
     }
     else
     {
         Views.AddItem window = new Views.AddItem(labels);
         window.AddNewObject += PresenterAddNewObject;
         window.ShowDialog();
     }
 }