Exemple #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);
            }
        }
Exemple #2
0
        public void EditSelectedSprint()
        {
            Sprint sprint = (Sprint)SprintListView.SelectedItem;

            if (sprint == null)
            {
                return;
            }
            AddEditSprintDialog addEditSprint = new AddEditSprintDialog(sprint);

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