예제 #1
0
 public Interactor(IOgateWay gate, OutPutBoudary outbound, IHistory iHis)
 {
     this.IGateWay      = gate;
     this.OutPutBoudary = outbound;
     this.IHistory      = iHis;
 }
예제 #2
0
 void sendOpenStateToOutBoundary(bool state)
 {
     OutPutBoudary.recieveOpenFileStateFromInteractor(state);
 }
예제 #3
0
 private void sendOutputDatas(List <OutPutData> outPutDatas)
 {
     OutPutBoudary.receiveOutPutDataFromInteractor(outPutDatas);
 }
예제 #4
0
 public Interactor(IOgateWay gate, OutPutBoudary outbound)
 {
     this.IGateWay      = gate;
     this.OutPutBoudary = outbound;
 }
예제 #5
0
        static void Main()
        {
            //Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new GUI());



            //Form gui = new TestCaseGUI();


            //TestCaseIGUI igui = (TestCaseIGUI)gui;
            //HardDriveTestCase hdTest = new HardDriveTestCase(igui);
            //HardDriveDataMapperTestCase hddmTest = new HardDriveDataMapperTestCase(igui);

            //IOgateWay io = new HardDriveDataMapper();
            //IOGateWayTestCase ioTest = new IOGateWayTestCase(io, igui);


            //IOgateWay io2 = new HardDriveDataMapper();
            //InteractorTestCase interTest = new InteractorTestCase(io2, igui);

            //FileModelTestCase fileTest = new FileModelTestCase(igui);

            //igui.attachResult(TrID.TrIDEngine.GetExtensionByFileContent("C:\\TestDir\\0ac62dc26de49c05241fa8f63432babb"));



            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            HardDriveDataMapper hddm = new HardDriveDataMapper();
            IOgateWay           io   = (IOgateWay)hddm;

            HDHistoryDataMapper hdhdm = new HDHistoryDataMapper();
            IHistory            ihis  = (IHistory)hdhdm;

            ViewModel     viewModel     = new ViewModel();
            Presenter     presenter     = new Presenter(viewModel);
            OutPutBoudary outPutBoudary = (OutPutBoudary)presenter;

            Interactor interactor = new Interactor(io, outPutBoudary, ihis);

            InputBoundary inputBoundary = (InputBoundary)interactor;

            Controller  ctrl  = new Controller(inputBoundary);
            IController ictrl = (IController)ctrl;

            Form gui = new GUI(ictrl, viewModel);

            interactor.LoadHistory();

            Application.Run(gui);

            //Coordinate point = new Coordinate();

            //point.CoordinatesChanged += StructEventHandler;
            //point.x = 10;
            //point.y = 20;
        }