Esempio n. 1
0
        public void Update(FileFilterOptions Source)
        {
            bIncludeOnly = Source.bIncludeOnly;
            IncludeOnly  = Source.IncludeOnly;

            AlwaysExclude = Source.AlwaysExclude;
        }
Esempio n. 2
0
        public FileFilterOptions Clone()
        {
            FileFilterOptions clone = new FileFilterOptions();

            clone.bIncludeOnly = bIncludeOnly;
            clone.IncludeOnly  = (string)IncludeOnly.Clone();

            clone.AlwaysExclude = (string)AlwaysExclude.Clone();

            return(clone);
        }
Esempio n. 3
0
        }                                                                         // does not need OnPropertyChanged because always before InitializeComponent



        public WFileFilter(UserInterface.FileFilterOptions fileFilterOptions)
        {
            this.fileFilterOptions = fileFilterOptions;

            int_fileFilterOptionsBackup = fileFilterOptions.Clone();

            InitializeComponent();

            ParentPanel.DataContext = this; // sets elementname for databinding

            Closing += this.OnWindowClosing;
        }
Esempio n. 4
0
        public UserInterfaceBase(Tasks.FileLists fileLists, UserOptionsType userOptionsType, RoMoRDuP.MainWindow mainWindow)
        {
            strSelectSourcePath = "SourcePath";
            strSelectTargetPath = "TargetPath";

            this.fileLists = fileLists;

            this.userOptionsType = userOptionsType;

            bTaskExecuteAutoscroll = true;

            this.mainWindow = mainWindow;

            ProcessHash = "Data Amount";

            int_fileFilterOptions         = new FileFilterOptions();
            int_PlaylistFileFilterOptions = new FileFilterOptions();

            SelectedSizeProcessHashItems = new List <System.Windows.Controls.ComboBoxItem>();
            System.Windows.Controls.ComboBoxItem item = new System.Windows.Controls.ComboBoxItem();
            item.Content = "kByte";
            SelectedSizeProcessHashItems.Add(item);

            System.Windows.Controls.ComboBoxItem item2 = new System.Windows.Controls.ComboBoxItem();
            item2.Content = "mByte";
            SelectedSizeProcessHashItems.Add(item2);

            /*
             * System.Windows.Controls.ComboBoxItem item3 = new System.Windows.Controls.ComboBoxItem();
             * item3.Content = "gByte";
             * SelectedSizeProcessHashItems.Add(item3);
             */

            messageBoxUI = new MBUI();

            bUseSameFolderPaths = true;
            bUpdatePlaylists    = true;

            visTarget = Visibility.Collapsed;
            visSource = Visibility.Visible;
        }
Esempio n. 5
0
 private void SaveFileFilterOptions()
 {
     int_fileFilterOptionsBackup = fileFilterOptions.Clone();
 }