private void mnuNew_Click(object sender, RoutedEventArgs e) { CreateProjectWindow newProjectWindow = new CreateProjectWindow("", "", "Create"); if (newProjectWindow.ShowDialog() == true) { dataCtrl.ProjCtrl.CreateProject(newProjectWindow.projName.Text, newProjectWindow.projDesc.Text); } }
private void mnuProjModify_Click(object sender, RoutedEventArgs e) { CreateProjectWindow newProjectWindow = new CreateProjectWindow(dataCtrl.ProjCtrl.Name, dataCtrl.ProjCtrl.Description, "Change"); if (newProjectWindow.ShowDialog() == true) { dataCtrl.ProjCtrl.Name = newProjectWindow.projName.Text; dataCtrl.ProjCtrl.Description = newProjectWindow.projDesc.Text; } }