Пример #1
0
        public MainForm()
        {
            InitializeComponent();

            var mainPresenter = new MainPresenter {MainView = this};

            var configRepo = new ConfigRepo();

            astForm1.AstPresenter = new AstPresenter(configRepo, mainPresenter) { AstView = astForm1 };
            astForm1.Init();

            configForm1.ConfigPresenter = new ConfigPresenter(configRepo, mainPresenter);
            configForm1.Init();

            execForm1.ExecPresenter = new ExecPresenter(configRepo, mainPresenter) {ExecView = execForm1};
            execForm1.Init();
        }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();

            var mainPresenter = new MainPresenter {MainView = this};

            var configRepo = new ConfigRepo();

            astForm1.AstPresenter = new AstPresenter(configRepo, mainPresenter) { AstView = astForm1 };
            astForm1.Init();

            configForm1.ConfigPresenter = new ConfigPresenter(configRepo, mainPresenter);
            configForm1.Init();

            execForm1.ExecPresenter = new ExecPresenter(configRepo, mainPresenter) {ExecView = execForm1};
            execForm1.Init();

            ajudaGridView.DataSource = mainPresenter.AjudaList();
            ajudaGridView.Columns[0].AutoSizeMode = DataGridViewAutoSizeColumnMode.ColumnHeader;
            ajudaGridView.Columns[1].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
        }