Exemplo n.º 1
0
        public UCMirrorFolders(Tasks.Tasks tasks)
            : base(tasks)
        {
            userInterfaceBase = tasks.userOptions.userOptionsMirror;

            InitializeComponent();

            taskExecute = new TasksExecution.TaskExecute(tasks.fileLists, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsMirror, tasks.playlistUpdatesMirror.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.userOptionsMirror);


                // ________Expert
                ucSelectSource         = new UserControls.UCSelectSource(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsMirror);
                ucGenerateHashes       = new UserControls.UCGenerateHashes(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsMirror);
                ucMirrorUserOptions    = new UserControls.UCMirrorUserOptions(tasks, tasks.userOptions.userOptionsMirror);
                ucTaskViewMirrorParent = new UserControls.UCTaskViewMirrorParent(tasks);
                ucTaskExecute          = new UserControls.UCTaskExecute((UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsMirror);

                //Initialize start panel
                ParentPanel.Children.Add(ucParent);

                ucParent.parentPanelExpert.Children.Add(ucSelectSource);
                ucParent.parentPanelExpert.Children.Add(ucGenerateHashes);
                ucParent.parentPanelExpert.Children.Add(ucMirrorUserOptions);
                ucParent.parentPanelExpert.Children.Add(ucTaskViewMirrorParent);
                ucParent.parentPanelExpert.Children.Add(ucTaskExecute);



                // ____________Easy mode
                ucSelectSourceEasy         = new UserControls.UCSelectSource(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsMirror);
                ucGenerateHashesEasy       = new UserControls.UCGenerateHashes(tasks, (UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsMirror);
                ucMirrorUserOptionsEasy    = new UserControls.UCMirrorUserOptionsEasy(tasks, tasks.userOptions.userOptionsMirror);
                ucTaskViewMirrorParentEasy = new UserControls.UCTaskViewMirrorParent(tasks);
                ucTaskExecuteEasy          = new UserControls.UCTaskExecute((UserInterface.UserInterfaceBase)tasks.userOptions.userOptionsMirror);

                ucParent.parentPanelEasy.Children.Add(ucSelectSourceEasy);
                ucParent.parentPanelEasy.Children.Add(ucGenerateHashesEasy);
                ucParent.parentPanelEasy.Children.Add(ucMirrorUserOptionsEasy);
                ucParent.parentPanelEasy.Children.Add(ucTaskViewMirrorParentEasy);
                ucParent.parentPanelEasy.Children.Add(ucTaskExecuteEasy);


                //Reset(); // On Main Window Call
            }
        }
Exemplo n.º 2
0
        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
            }
        }