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