static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); LocalDatabase.HardDriveDataMapper hddm = new LocalDatabase.HardDriveDataMapper(); LocalInteractor.IOgateWay io = (LocalInteractor.IOgateWay)(hddm); LocalHIstoryMapper.HDHistoryDataMapper hdhdm = new LocalHIstoryMapper.HDHistoryDataMapper(); LocalInteractor.IHistory ihis = (LocalInteractor.IHistory)hdhdm; PreController.ViewModel viewModel = new PreController.ViewModel(); PreController.Presenter presenter = new PreController.Presenter(viewModel); LocalInteractor.OutPutBoudary outPutBoudary = (LocalInteractor.OutPutBoudary)presenter; LocalInteractor.Interactor interactor = new LocalInteractor.Interactor(io, outPutBoudary, ihis); LocalInteractor.InputBoundary inputBoundary = (LocalInteractor.InputBoundary)interactor; PreController.Controller ctrl = new PreController.Controller(inputBoundary); PreController.IController ictrl = (PreController.IController)ctrl; Form gui = new GUI(ictrl, viewModel); interactor.LoadHistory(); Application.Run(gui); }
public static void Main() { App app = new App(); LocalDatabase.HardDriveDataMapper hddm = new LocalDatabase.HardDriveDataMapper(); LocalInteractor.IOgateWay io = (LocalInteractor.IOgateWay)(hddm); LocalHIstoryMapper.HDHistoryDataMapper hdhdm = new LocalHIstoryMapper.HDHistoryDataMapper(); LocalInteractor.IHistory ihis = (LocalInteractor.IHistory)hdhdm; PreController.ViewModel viewModel = new PreController.ViewModel(); PreController.Presenter presenter = new PreController.Presenter(viewModel); LocalInteractor.OutPutBoudary outPutBoudary = (LocalInteractor.OutPutBoudary)presenter; LocalInteractor.Interactor interactor = new LocalInteractor.Interactor(io, outPutBoudary, ihis); LocalInteractor.InputBoundary inputBoundary = (LocalInteractor.InputBoundary)interactor; PreController.Controller ctrl = new PreController.Controller(inputBoundary); PreController.IController ictrl = (PreController.IController)ctrl; Window gui = new MainWindow(ictrl, viewModel); interactor.LoadHistory(); //Window gui = new WindowTest(); app.Run(gui); }