Пример #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;
 }
Пример #2
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;
 }
Пример #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);
        }
Пример #4
0
 internal void SaveSettings(SD.Settings settings)
 {
     Comman.Settings.SaveSettings(settings);
 }
Пример #5
0
        internal void SaveSettings(SD.Settings settings)
        {
            var filePath = Path.GetTempPath() + "\\" + Constants.settingTempFileName;

            Serializer.Serialize(settings, filePath);
        }