Example #1
0
 public static void SetSettings(Settings setting)
 {
     prefixWhereParameter = setting.prefixWhereParameter;
     prefixInputParameter = setting.prefixInputParameter;
     prefixInsertSp = setting.prefixInsertSp;
     prefixUpdateSp = setting.prefixUpdateSp;
     errorHandling = setting.errorHandling == "Yes" ? true : false;
 }
 internal static SPGenerator.DataModel.Settings GetSettings()
 {
     var filePath = Path.GetTempPath() + "\\" + Constants.settingTempFileName;
     var settings = Serializer.Deserialize<SD.Settings>(new SD.Settings(), filePath);
     if (settings == null)
         settings = new SD.Settings();
     return settings;
 }
Example #3
0
        internal static SPGenerator.DataModel.Settings GetSettings()
        {
            var filePath = Path.GetTempPath() + "\\" + Constants.settingTempFileName;
            var settings = Serializer.Deserialize <SD.Settings>(new SD.Settings(), filePath);

            if (settings == null)
            {
                settings = new SD.Settings();
            }
            return(settings);
        }
Example #4
0
 internal void SaveSettings(SD.Settings settings)
 {
     Comman.Settings.SaveSettings(settings);
 }
Example #5
0
        internal void SaveSettings(SD.Settings settings)
        {
            var filePath = Path.GetTempPath() + "\\" + Constants.settingTempFileName;

            Serializer.Serialize(settings, filePath);
        }