public UCTaskViewMirrorParent(Tasks.Tasks tasks) { this.tasks = tasks; this.userOptionsBase = tasks.userOptions.userOptionsMirror; InitializeComponent(); if (ucParentSource == null) { ucParentSource = new UserControls.UCTaskViewParent(tasks, userOptionsBase, tasks.taskPlannerMirror, TaskViewParentType.Source, tasks.playlistUpdatesMirror); //Initialize start panel TaskViewSourcePanel.Children.Add(ucParentSource); } if (ucParentTarget == null) { ucParentTarget = new UserControls.UCTaskViewParent(tasks, userOptionsBase, tasks.taskPlannerMirror, TaskViewParentType.Target, tasks.playlistUpdatesMirror); //Initialize start panel TaskViewTargetPanel.Children.Add(ucParentTarget); } ; }
public UCOptimize(Tasks.Tasks tasks) { this.tasks = tasks; InitializeComponent(); if (ucParent == null) { ucParent = new UserControls.UCParent(new UserControls.degNext(Next), new UserControls.degBack(Back), new UserControls.degCancel(Cancel), new UserControls.degSelectionModeChanged(SelectionModeChanged), tasks.userOptions.userOptionsOptimize); ucSelectSource = new UserControls.UCSelectSource(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsOptimize); ucDataCollecting = new UserControls.UCDataCollecting(); ucOptimizeRenameOptions = new UserControls.UCOptimizeRenameOptions(tasks); ucOptimizeGroupOptions = new UserControls.UCOptimizeGroupOptions(); ucOptimizeSelectGrouping = new UserControls.UCOptimizeSelectGrouping(tasks); ucTaskViewParent = new UserControls.UCTaskViewParent(tasks, tasks.userOptions.userOptionsOptimize, tasks.taskPlannerOptimize, UserControls.TaskViewParentType.Source, tasks.playlistUpdatesOptimize); InitializeComponent(); //Initialize start panel ParentPanel.Children.Add(ucParent); ucParent.parentPanelExpert.Children.Add(ucSelectSource); ucParent.parentPanelExpert.Children.Add(ucDataCollecting); ucParent.parentPanelExpert.Children.Add(ucOptimizeRenameOptions); ucParent.parentPanelExpert.Children.Add(ucOptimizeGroupOptions); ucParent.parentPanelExpert.Children.Add(ucOptimizeSelectGrouping); ucParent.parentPanelExpert.Children.Add(ucTaskViewParent); Reset(); } }
public UCRemoveDuplicates(Tasks.Tasks tasks) : base(tasks) { userInterfaceBase = tasks.userOptions.userOptionsRemoveDuplicates; taskExecute = new TasksExecution.TaskExecute(tasks.fileLists, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsRemoveDuplicates, tasks.playlistUpdatesRemoveDuplicates.playlistUpdatesModel); if (ucParent == null) { ucParent = new UserControls.UCParent(new UserControls.degNext(Next), new UserControls.degBack(Back), new UserControls.degCancel(Cancel), new UserControls.degSelectionModeChanged(SelectionModeChanged), tasks.userOptions.userOptionsRemoveDuplicates); // Expert mode ucSelectSource = new UserControls.UCSelectSource(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsRemoveDuplicates); ucGenerateHashes = new UserControls.UCGenerateHashes(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsRemoveDuplicates); ucRDUserOptions = new UserControls.UCRemoveDuplicatesUserOptions(tasks); ucTaskViewParent = new UserControls.UCTaskViewParent(tasks, tasks.userOptions.userOptionsRemoveDuplicates, tasks.taskPlannerRemoveDuplicates, UserControls.TaskViewParentType.Source, tasks.playlistUpdatesRemoveDuplicates); ucTaskExecute = new UserControls.UCTaskExecute(tasks.userOptions.userOptionsRemoveDuplicates); InitializeComponent(); //Initialize start panel ParentPanel.Children.Add(ucParent); ucParent.parentPanelExpert.Children.Add(ucSelectSource); ucParent.parentPanelExpert.Children.Add(ucGenerateHashes); ucParent.parentPanelExpert.Children.Add(ucRDUserOptions); ucParent.parentPanelExpert.Children.Add(ucTaskViewParent); ucParent.parentPanelExpert.Children.Add(ucTaskExecute); // Easy mode ucSelectSourceEasy = new UserControls.UCSelectSource(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsRemoveDuplicates); ucGenerateHashesEasy = new UserControls.UCGenerateHashes(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsRemoveDuplicates); ucRDUserOptionsEasy = new UserControls.UCRemoveDuplicatesUserOptions(tasks); ucTaskViewParentEasy = new UserControls.UCTaskViewParent(tasks, tasks.userOptions.userOptionsRemoveDuplicates, tasks.taskPlannerRemoveDuplicates, UserControls.TaskViewParentType.Source, tasks.playlistUpdatesRemoveDuplicates); ucTaskExecuteEasy = new UserControls.UCTaskExecute(tasks.userOptions.userOptionsRemoveDuplicates); ucParent.parentPanelEasy.Children.Add(ucSelectSourceEasy); ucParent.parentPanelEasy.Children.Add(ucGenerateHashesEasy); ucParent.parentPanelEasy.Children.Add(ucRDUserOptionsEasy); ucParent.parentPanelEasy.Children.Add(ucTaskViewParentEasy); ucParent.parentPanelEasy.Children.Add(ucTaskExecuteEasy); //Reset(); // On Main Window Call } }