void ViewSelectionChanged(object sender, System.EventArgs e) { var selectedId = _view.SelectedProjectId; if (selectedId > _view.NoneSelected) { var project = _model.GetProject(selectedId); _view.EnableControls(true); _view.UpdateDetails(project); //SetEstimatedColor(project); } else { _view.EnableControls(false); } }
private void view_SelectionChanged(object sender, EventArgs e) { int selectedId = _view.SelectedProjectId; if (selectedId > _view.NONE_SELECTED) { Project project = _model.GetProject(selectedId); _view.EnableControls(true); _view.UpdateDetails(project); SetEstimatedColor(project); } else { _view.EnableControls(false); } }