コード例 #1
0
        private void btNew_Click(object sender, RoutedEventArgs e)
        {
            if (ProjectView.IsVisible)
            {
                AddEditProjectDialog addEditProject = new AddEditProjectDialog();
                addEditProject.ShowDialog();
                LoadDataFromDb(Globals.currentUser);
            }

            if (SprintView.IsVisible)
            {
                AddEditSprintDialog addEditSprint = new AddEditSprintDialog(null);
                addEditSprint.ShowDialog();
                LoadDataFromDb(Globals.currentUser);
            }

            if (UserStoryView.IsVisible)
            {
                AddEditUserStoryDialog addEditUserStory = new AddEditUserStoryDialog(null);
                addEditUserStory.ShowDialog();
                LoadDataFromDb(Globals.currentUser);
            }

            if (IssueView.IsVisible)
            {
                AddEditIssueDialog addEditIssue = new AddEditIssueDialog(null);
                addEditIssue.ShowDialog();
                IssueListView.ItemsSource = null;
                LoadDataFromDb(Globals.currentUser);
            }
        }
コード例 #2
0
 private void tbUserStory_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (currentIssue != null)
     {
         UserStory selectedUserStory             = Globals.currentUserStoryList.Where(us => us.Name.Equals(cmbUserStoryList.SelectedItem.ToString())).FirstOrDefault();
         AddEditUserStoryDialog addEditUserStory = new AddEditUserStoryDialog(selectedUserStory);
         addEditUserStory.ShowDialog();
         cmbUserStoryList.ItemsSource = Globals.currentUserStoryList.AsEnumerable().Select(us => us.Name).ToList <string>();
         cmbUserStoryList.Items.Refresh();
     }
 }
コード例 #3
0
        public void EditSelectedUserStory()
        {
            UserStory userStory = (UserStory)UserStoryListView.SelectedItem;

            if (userStory == null)
            {
                return;
            }
            AddEditUserStoryDialog addEditUserStory = new AddEditUserStoryDialog(userStory);

            addEditUserStory.ShowDialog();
            LoadDataFromDb(Globals.currentUser);
        }