public GuidePresenter(GuideModel theGuideModel, IGuideView theGuideView) { guideModel = theGuideModel; guideView = theGuideView; StartDrivers(); guideView.MainForm += StartDrivers; guideView.OpenFile += TreeDrivers; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var view = new mainForm(); var model = new GuideModel(); var presenter = new GuidePresenter(model, view); Application.Run(view); }