コード例 #1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            IMessageService mainMessageService = new MainMessageService();

            IMainView     mainForm      = new MainForm();
            IFile         file          = new BinaryFile();
            FilePresenter mainPresenter = new FilePresenter(mainForm, mainMessageService, file);

            ILowLevelFuncView     lowLevelFuncView      = mainForm;
            ILibCreator           libCreator            = new LowLevelLibCreator();
            LowLevelFuncPresenter lowLevelFuncPresenter = new LowLevelFuncPresenter(lowLevelFuncView, mainMessageService, libCreator);

            IAnalyzerView     analyzerView      = mainForm;
            IAnalyzer         analyzer          = new DoWhileAnalyzer();
            AnalyzerPresenter analyzerPresenter = new AnalyzerPresenter(analyzerView, mainMessageService, analyzer);

            IDBView         dBView         = mainForm;
            ICrudRepository crudRepository = new EntryRepository();
            DBPresenter     dBPresenter    = new DBPresenter(dBView, mainMessageService, crudRepository);

            Application.Run((MainForm)mainForm);
        }
コード例 #2
0
 public LowLevelFuncPresenter(ILowLevelFuncView view, IMessageService service, ILibCreator creator)
 {
     this.view             = view;
     this.service          = service;
     this.creator          = creator;
     view.BitwiseNOTClick += View_BitwiseNOTClick;
 }