예제 #1
0
        public UCTaskViewChildAfter(Tasks.Tasks _tasks, TaskViewParentType taskViewParentType, TaskPlanner.TaskPlannerBase taskPlannerBase, degUpdateAfterView updateAfterView, UserInterface.UserInterfaceBase userOptions)
        {
            this.tasks = _tasks;

            this.userOptions = userOptions;

            this.taskViewParentType = taskViewParentType;

            this.updateAfterView = updateAfterView;

            this.taskPlannerBase = taskPlannerBase;

            InitializeComponent();

            TreeView_After.SelectedItemChanged +=
                new RoutedPropertyChangedEventHandler <object>(TreeView_After_SelectedItemChanged);

            TreeView_After.Focusable = true;
        }
예제 #2
0
        public UCTaskViewParent(Tasks.Tasks tasks, UserInterface.UserInterfaceBase userOptionsBase, TaskPlanner.TaskPlannerBase taskPlannerBase, TaskViewParentType taskViewParentType, PlaylistUpdates.PlaylistUpdates playlistUpdates)
        {
            this.taskViewParentType = taskViewParentType;

            this.userOptionsBase = userOptionsBase;

            this.taskPlannerBase = taskPlannerBase;

            InitializeComponent();

            this.BeforeAfter_TabControl = tabControl;

            this.tasks = tasks;

            ucTaskViewChildAfter  = new UCTaskViewChildAfter(tasks, taskViewParentType, taskPlannerBase, new degUpdateAfterView(UpdateAfterView), userOptionsBase);
            ucTaskViewChildBefore = new UCTaskViewChildBefore(tasks, taskViewParentType, userOptionsBase);
            ucPlaylistUpdates     = new UCPlaylistUpdates(playlistUpdates);

            TaskViewParent_After.Children.Add(ucTaskViewChildAfter);
            TaskViewParent_Before.Children.Add(ucTaskViewChildBefore);
            TaskViewParent_Playlists.Children.Add(ucPlaylistUpdates);
        }