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; }
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); }