Example #1
0
        private void SaveSettings()
        {
            var settings = new Settings();

            settings.DatabaseName          = databaseNameBox.Text;
            settings.ServerName            = serverNameBox.Text;
            settings.KMLFileName           = KMLFileLocationBox.Text;
            settings.TableName             = tableBox.Text;
            settings.ShapeColumnName       = columnNameBox.Text;
            settings.Login                 = userNameBox.Text;
            settings.SRID                  = sridBox.Text;
            settings.SRIDEnabled           = sridCheckBox.IsChecked.Value;
            settings.Geography             = geographyMode.IsChecked.Value;
            settings.UseIntegratedSecurity = integratedSecurityCheckbox.IsChecked.Value;
            settings.FixBrokenPolygons     = fixBrokenPolygons.IsChecked.Value;
            SettingsPersister.Persist(settings);
        }
Example #2
0
        private void SaveSettings()
        {
            Settings settings = new Settings
            {
                DatabaseName          = databaseNameBox.Text,
                ServerName            = serverNameBox.Text,
                KMLFileName           = KMLFileLocationBox.Text,
                TableName             = tableBox.Text,
                ShapeColumnName       = columnNameBox.Text,
                Login                 = userNameBox.Text,
                SRID                  = sridBox.Text,
                SRIDEnabled           = sridCheckBox.IsChecked.Value,
                Geography             = geographyMode.IsChecked.Value,
                UseIntegratedSecurity = integratedSecurityCheckbox.IsChecked.Value,
                FixBrokenPolygons     = fixBrokenPolygons.IsChecked.Value
            };

            SettingsPersister.Persist(settings);
        }