public void UpdateProject(Project project) { Project SelectedProj = Projects.Where(p => p.ID == project.ID).FirstOrDefault() as Project; SelectedProj.Name = project.Name; SelectedProj.Estimate = project.Estimate; SelectedProj.Actual = project.Actual; RaiseProjectUpdated(SelectedProj); }
private void UpdateDetails(Project project) { textBox1.Text = project.Estimate.ToString(); textBox2.Text = project.Actual.ToString(); }
public void Update(Project project) { _model.UpdateProject(project); }
private void RaiseProjectUpdated(Project project) { ProjectUpdated(this, new ProjectEventArgs(project)); }
public ProjectEventArgs(Project project) { Project = project; }