Beispiel #1
0
 public INILine(string boolVar, bool boolVal, INIBoolType boolType)
 {
     entry    = "";
     key      = boolVar;
     value    = (boolVal ? (boolType == INIBoolType.Text ? "True" : (boolType == INIBoolType.OnOff ? "On" : (boolType == INIBoolType.YesNo ? "Yes" : "1"))) : (boolType == INIBoolType.Text ? "False" : (boolType == INIBoolType.OnOff ? "Off" : (boolType == INIBoolType.YesNo ? "No" : "0"))));
     comment  = "";
     section  = curSection;
     modified = true;
 }
Beispiel #2
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, double min, double max, sbyte precision)
 {
     this.var       = var;
     this.section   = section;
     this.key       = variable;
     this.type      = type;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = (type == INIVariableType.Boolean ? INIBools : null);
     this.min       = min;
     this.max       = max;
     this.precision = precision;
     this.useMinMax = true;
 }
Beispiel #3
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, Dictionary <string, double> dict, double min, double max)
 {
     this.var       = var;
     this.section   = section;
     this.key       = variable;
     this.type      = type;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = dict;
     this.min       = min;
     this.max       = max;
     this.precision = -1;
     this.useMinMax = true;
 }
Beispiel #4
0
 public INIVariableDef(string section, string defValue)
 {
     this.var       = null;
     this.section   = section;
     this.key       = null;
     this.type      = INIVariableType.None;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = null;
     this.min       = 0;
     this.max       = 0;
     this.precision = -1;
     this.useMinMax = false;
 }
Beispiel #5
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue)
 {
     this.var       = var;
     this.section   = section;
     this.key       = variable;
     this.type      = type;
     this.boolType  = INIBoolType.Text;
     this.defValue  = defValue;
     this.dict      = (type == INIVariableType.Boolean ? INIBools : null);
     this.min       = 0;
     this.max       = 0;
     this.precision = -1;
     this.useMinMax = false;
 }
Beispiel #6
0
 public INILine(string boolVar, bool boolVal, INIBoolType boolType)
 {
     entry = "";
     key = boolVar;
     value = (boolVal ? (boolType == INIBoolType.Text ? "True" : (boolType == INIBoolType.OnOff ? "On" : (boolType == INIBoolType.YesNo ? "Yes" : "1"))) : (boolType == INIBoolType.Text ? "False" : (boolType == INIBoolType.OnOff ? "Off" : (boolType == INIBoolType.YesNo ? "No" : "0"))));
     comment = "";
     section = curSection;
     modified = true;
 }
Beispiel #7
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, Dictionary<string, double> dict, double min, double max)
 {
     this.var = var;
     this.section = section;
     this.key = variable;
     this.type = type;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = dict;
     this.min = min;
     this.max = max;
     this.precision = -1;
     this.useMinMax = true;
 }
Beispiel #8
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue, double min, double max, sbyte precision)
 {
     this.var = var;
     this.section = section;
     this.key = variable;
     this.type = type;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = (type == INIVariableType.Boolean ? INIBools : null);
     this.min = min;
     this.max = max;
     this.precision = precision;
     this.useMinMax = true;
 }
Beispiel #9
0
 public INIVariableDef(string var, string section, string variable, INIVariableType type, string defValue)
 {
     this.var = var;
     this.section = section;
     this.key = variable;
     this.type = type;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = (type == INIVariableType.Boolean ? INIBools : null);
     this.min = 0;
     this.max = 0;
     this.precision = -1;
     this.useMinMax = false;
 }
Beispiel #10
0
 public INIVariableDef(string section, string defValue)
 {
     this.var = null;
     this.section = section;
     this.key = null;
     this.type = INIVariableType.None;
     this.boolType = INIBoolType.Text;
     this.defValue = defValue;
     this.dict = null;
     this.min = 0;
     this.max = 0;
     this.precision = -1;
     this.useMinMax = false;
 }