예제 #1
0
 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);
 }
예제 #4
0
 private void RaiseProjectUpdated(Project project)
 {
     ProjectUpdated(this, new ProjectEventArgs(project));
 }
예제 #5
0
 public ProjectEventArgs(Project project)
 {
     Project = project;
 }