Example #1
0
        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);
            }
        }
Example #2
0
        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);
            }
        }