public Interactor(IOgateWay gate, OutPutBoudary outbound, IHistory iHis) { this.IGateWay = gate; this.OutPutBoudary = outbound; this.IHistory = iHis; }
void sendOpenStateToOutBoundary(bool state) { OutPutBoudary.recieveOpenFileStateFromInteractor(state); }
private void sendOutputDatas(List <OutPutData> outPutDatas) { OutPutBoudary.receiveOutPutDataFromInteractor(outPutDatas); }
public Interactor(IOgateWay gate, OutPutBoudary outbound) { this.IGateWay = gate; this.OutPutBoudary = outbound; }
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; }