Пример #1
0
        private void CreateNewGoalView(Goal goal)
        {
            var goalItem = new GoalView(goal);

            goalItem.Open    += OpenGoal;
            goalItem.Delete  += DeleteGoal;
            goalItem.AddTask += AddTask;
            GoalsPanel.Children.Add(goalItem);
        }
Пример #2
0
        private void AddTask(GoalView obj)
        {
            var dw = new TaskDialogWindow();

            if (dw.ShowDialog() == true)
            {
                CreateNewTaskView(dw.Task);
            }
        }
Пример #3
0
 private void DeleteGoal(GoalView obj) => GoalsPanel.Children.Remove(obj);
Пример #4
0
 private void OpenGoal(GoalView obj) => DetailedVIew.Goal = obj.Goal;