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; }
void _view_SaveConnection(ConnectionStringEntry entry, bool silent) { ProfileHelper ph = new ProfileHelper(); ph.SaveNewConnection(entry); _view.RefreshView(); }
void _view_UpdateSavedConnections(IList<SavedConnection> connections) { ProfileHelper ph = new ProfileHelper(); ph.Replace(connections.ToList()); View.RefreshView(); }
protected virtual void Initialize() { View.TestConnection += new ConnectionAction(_view_TestConnection); View.ConnectionStrings = Model.Entries; ProfileHelper ph = new ProfileHelper(); View.SavedConnections = ph.SavedConnections; }
void _view_UpdateSavedConnections(IList <SavedConnection> connections) { ProfileHelper ph = new ProfileHelper(); ph.Replace(connections.ToList()); View.RefreshView(); }