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(); }
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); }