コード例 #1
0
        public ManagerMainPresenter(Solution solution, IManagerView view)
        {
            if (solution == null || string.IsNullOrEmpty(solution.FullName)) { return; }

            _solution = solution;
            _view = view;
            _solutionPath = Directory.GetParent(_solution.FullName).FullName;

            if (string.IsNullOrEmpty(_solutionPath)) { return; }

            _model = ManagerModel.Instance;
            Initialize();

            Task t = Task.Factory.StartNew(new Action(() =>
            {
                DiscoverConfigurations();
            }));

            ProfileHelper ph = new ProfileHelper();
            _view.SavedConnections = ph.SavedConnections;
        }