private void OnViewProjectCommand()
 {
     ProjectWindow projectWindow = new ProjectWindow(ProjectWindowType.View, SelectProjectEntity);
     projectWindow.Closed += projectWindow_Closed;
     projectWindow.Show();
 }
 private void OnAddCommand()
 {
     AddProjectEntity = new ProjectEntity();
     AddProjectEntity.RecordDate = DateTime.Now;
     AddProjectEntity.YearNumber = DateTime.Now.Year;
     AddProjectEntity.ProjectEntityDictionary = ProjectEntityDictionary;
     AddProjectEntity.Project = new ProductManager.Web.Model.project();
     ProjectWindow projectWindow = new ProjectWindow(ProjectWindowType.ADD, AddProjectEntity);
     projectWindow.Closed += AddProjectClosed;
     projectWindow.Show();
 }