public void PersistSettings()
        {
            FileNameFilterSettings settings = new FileNameFilterSettings();
            settings.Condition = (FileNameFilterSettings.FilterCondition)cbCondition.SelectedIndex;
            settings.Value = txtValue.Text;
            settings.RepresentsRegularExpression = chkRegularExpression.Checked;

            FilterSettingsBase.SaveSettings<FileNameFilterSettings>(settings.FileName, settings);
        }
        public void MaterializeSettings()
        {
            FileNameFilterSettings settings = new FileNameFilterSettings();

            settings = FilterSettingsBase.LoadSettings <FileNameFilterSettings>(settings.FileName);

            cbCondition.SelectedIndex    = Convert.ToInt32(settings.Condition);
            txtValue.Text                = settings.Value;
            chkRegularExpression.Checked = settings.RepresentsRegularExpression;
        }
        public void PersistSettings()
        {
            FileNameFilterSettings settings = new FileNameFilterSettings();

            settings.Condition = (FileNameFilterSettings.FilterCondition)cbCondition.SelectedIndex;
            settings.Value     = txtValue.Text;
            settings.RepresentsRegularExpression = chkRegularExpression.Checked;

            FilterSettingsBase.SaveSettings <FileNameFilterSettings>(settings.FileName, settings);
        }
        public void MaterializeSettings()
        {
            FileNameFilterSettings settings = new FileNameFilterSettings();

            settings = FilterSettingsBase.LoadSettings<FileNameFilterSettings>(settings.FileName);

            cbCondition.SelectedIndex = Convert.ToInt32(settings.Condition);
            txtValue.Text = settings.Value;
            chkRegularExpression.Checked = settings.RepresentsRegularExpression;
        }
Esempio n. 5
0
 public FileNameFilter()
 {
     Resources.Culture = System.Threading.Thread.CurrentThread.CurrentCulture;
     settings__ = FilterSettingsBase.LoadSettings<FileNameFilterSettings>(settings__.FileName);
 }
Esempio n. 6
0
 public FileNameFilter()
 {
     Resources.Culture = System.Threading.Thread.CurrentThread.CurrentCulture;
     settings__        = FilterSettingsBase.LoadSettings <FileNameFilterSettings>(settings__.FileName);
 }