Exemple #1
0
 public LoadPresenter(Iquestions viev, Models.LoadModel model)
 {
     this.view             = viev;
     this.model            = model;
     view.loadDialog       = model.loadDialog;
     view.Action          += Firstaction;
     view.ActionText       = model.actionText;
     view.ActionTextSecond = model.secondActionText;
     view.ActionSecond    += secondAction;
     viev.Back            += backward;
     view.Forward         += forawrd;
     //view.openDialog();
 }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Viev viu = new Viev();

            //TODO poprawic to xd przeca to tak nie moze byc

            quiz.Models.LoadModel loadmodel  = new Models.LoadModel();
            LoadPresenter         intervievP = new LoadPresenter(viu.getinterface(), loadmodel);

            // SaveModel savemodel = new SaveModel();
            //SavePresenter intervievP = new SavePresenter(viu.getinterface(), savemodel);

            Application.Run(viu);
        }