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;
        }
Пример #5
0
 public FileNameFilter()
 {
     Resources.Culture = System.Threading.Thread.CurrentThread.CurrentCulture;
     settings__ = FilterSettingsBase.LoadSettings<FileNameFilterSettings>(settings__.FileName);
 }
Пример #6
0
 public FileNameFilter()
 {
     Resources.Culture = System.Threading.Thread.CurrentThread.CurrentCulture;
     settings__        = FilterSettingsBase.LoadSettings <FileNameFilterSettings>(settings__.FileName);
 }