示例#1
0
        /////////////////////////////////////////////////////////
        #region Constructors

        public SolutionPagePresenter(SolutionPageControl view)
        {
            _view = view;
            _ide  = GetIde(_view.DataContext);

            _model = new SolutionPageModel();
            var config = _model.LoadConfiguration();

            _vm = new SolutionPageViewModel(config);

            _view.ConnectDataSource(_vm);
            ConnectEventHandler();

            FillDefault();
        }
示例#2
0
        /////////////////////////////////////////////////////////
        #region Public Methods

        public void ConnectDataSource(SolutionPageViewModel vm)
        {
            DataContext = vm;
        }