Пример #1
0
 private void FAFFileOpenInit(SettingsDataset settings)
 {
     SpaceAsWildCard.IsChecked                    = settings.FileOpen.SpaceAsWildcard;
     SearchIntheMiddle.IsChecked                  = settings.FileOpen.SearchInTheMiddle;
     UseCamelCase.IsChecked                       = settings.FileOpen.UseCamelCase;
     IgnoreExternalDependencies.IsChecked         = settings.FileOpen.IgnoreExternalDependencies;
     OpenMultipleFiles.IsChecked                  = settings.FileOpen.OpenMultipleFiles;
     AutoColumnResize.IsChecked                   = settings.FileOpen.AutoColumnResize;
     MaximumResults.Text                          = settings.FileOpen.ResultsLimit.ToString(CultureInfo.InvariantCulture);
 }
Пример #2
0
        public static void WriteSettings(SettingsDataset data)
        {
            try
            {
                if (data != null)
                    using (System.IO.StreamWriter writer = new System.IO.StreamWriter(SettingFilePath))
                    {
                        System.Xml.Serialization.XmlSerializer serializer = new System.Xml.Serialization.XmlSerializer(typeof(SettingsDataset));
                        serializer.Serialize(writer, data);
                        xfeaturesoptions = data;
                        UpdateHandler(null);
                    }
            }
            catch (Exception )
            {

            }
        }
Пример #3
0
 public static SettingsDataset CreateDefaultSettings()
 {
     var settings = new SettingsDataset();
     return settings;
 }