Пример #1
0
        public void Update(FileFilterOptions Source)
        {
            bIncludeOnly = Source.bIncludeOnly;
            IncludeOnly  = Source.IncludeOnly;

            AlwaysExclude = Source.AlwaysExclude;
        }
Пример #2
0
        public FileFilterOptions Clone()
        {
            FileFilterOptions clone = new FileFilterOptions();

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

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

            return(clone);
        }
Пример #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;
        }
Пример #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;
        }
Пример #5
0
 private void SaveFileFilterOptions()
 {
     int_fileFilterOptionsBackup = fileFilterOptions.Clone();
 }