///////////////////////////////////////////////////////// #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(); }
///////////////////////////////////////////////////////// #region Public Methods public void ConnectDataSource(SolutionPageViewModel vm) { DataContext = vm; }