Exemple #1
0
        public static void Main()
        {
            Application app = new Application();

            HDMain hdMain = new HDMain();
            SQLserverConnectMain     sqlMain     = new SQLserverConnectMain();
            ScreenImplementationMain screenMain  = new ScreenImplementationMain();
            FileOpenerServiceMain    fileService = new FileOpenerServiceMain();
            //
            ViewMain viewMain = new ViewMain();
            //
            ITPointPresenterControllerMain pcMain = new
                                                    ITPointPresenterControllerMain(
                viewMain.GetITControlViewModel(),
                viewMain.GetPreviewViewModel(),
                viewMain.GetOverviewViewModel(),
                viewMain.GetRoundPointViewModel()

                );
            //
            IT_Control_InteractorMain interactorMain = new
                                                       IT_Control_InteractorMain(hdMain.GetHardDriveGateway(),
                                                                                 screenMain.GetScreenBoundary(),
                                                                                 sqlMain.GetPointDataGateway(),
                                                                                 pcMain.GetOutputBoundary(),
                                                                                 fileService.GetFileOpenerAPI());

            //
            pcMain.AttachInputBoundary(interactorMain.GetInputBoundary());
            //
            app.Run(viewMain.GetMainWindow());

            //app.Run(new OverviewView());
        }
Exemple #2
0
        public static void Main()
        {
            HardDriveMain            hdMain     = new HardDriveMain();
            ScreenImplementationMain screenMain = new ScreenImplementationMain();
            SQLserverConnectMain     sqlMain    = new SQLserverConnectMain();

            PointViewMain viewMain = new PointViewMain();

            PointPresenterControllerMain pcMain = new PointPresenterControllerMain(
                viewMain.GetPointViewModel(),
                viewMain.GetTeamChosenViewModel(),
                viewMain.GetPreviewViewModel());

            PointInteractorMain interactorMain = new PointInteractorMain(
                hdMain.GetHistoryGateway(),
                screenMain.GetScreenBoundary(),
                sqlMain.GetPointDataGateway(),
                pcMain.GetOutputBoundary()
                );

            pcMain.AttachInputBoundary(interactorMain.GetInputBoundary());

            Application app = new Application();

            app.Run(viewMain.GetMainWindow());
        }