Ejemplo n.º 1
0
 public StringParameter(string name, string defaultValue = "", SettingInputMode inputMode = SettingInputMode.Fixed)
 {
     Name                = name;
     DefaultValue        = defaultValue ?? string.Empty;
     DefaultVariableName = defaultValue ?? string.Empty;
     InputMode           = inputMode;
 }
Ejemplo n.º 2
0
 public static BlockSetting CreateListOfStringsSetting(string name, List <string> defaultValue = null,
                                                       SettingInputMode mode = SettingInputMode.Fixed)
 {
     return(new BlockSetting
     {
         Name = name,
         InputMode = mode,
         InterpolatedSetting = new InterpolatedListOfStringsSetting
         {
             Value = defaultValue ?? new List <string>()
         },
         FixedSetting = new ListOfStringsSetting
         {
             Value = defaultValue ?? new List <string>()
         }
     });
 }
Ejemplo n.º 3
0
 public static BlockSetting CreateDictionaryOfStringsSetting(string name, Dictionary <string, string> defaultValue = null,
                                                             SettingInputMode mode = SettingInputMode.Fixed)
 {
     return(new BlockSetting
     {
         Name = name,
         InputMode = mode,
         InterpolatedSetting = new InterpolatedDictionaryOfStringsSetting
         {
             Value = defaultValue ?? new Dictionary <string, string>()
         },
         FixedSetting = new DictionaryOfStringsSetting
         {
             Value = defaultValue ?? new Dictionary <string, string>()
         }
     });
 }
Ejemplo n.º 4
0
 public ByteArrayParameter(string name, byte[] defaultValue = null, SettingInputMode inputMode = SettingInputMode.Fixed)
 {
     Name         = name;
     InputMode    = inputMode;
     DefaultValue = defaultValue ?? Array.Empty <byte>();
 }
Ejemplo n.º 5
0
 public static BlockSetting CreateStringSetting(string name, string defaultValue = "", SettingInputMode mode = SettingInputMode.Fixed)
 {
     return(new BlockSetting
     {
         Name = name,
         InputMode = mode,
         InputVariableName = defaultValue,
         InterpolatedSetting = new InterpolatedStringSetting
         {
             Value = defaultValue
         },
         FixedSetting = new StringSetting
         {
             Value = defaultValue
         }
     });
 }
Ejemplo n.º 6
0
 public ListOfStringsParameter(string name, List <string> defaultValue = null, SettingInputMode inputMode = SettingInputMode.Fixed)
 {
     Name                = name;
     DefaultValue        = defaultValue ?? new List <string>();
     DefaultVariableName = string.Empty;
     InputMode           = SettingInputMode.Fixed;
 }
 public DictionaryOfStringsParameter(string name, Dictionary <string, string> defaultValue = null, SettingInputMode inputMode = SettingInputMode.Fixed)
 {
     Name                = name;
     DefaultValue        = defaultValue ?? new Dictionary <string, string>();
     DefaultVariableName = string.Empty;
     InputMode           = SettingInputMode.Fixed;
 }