public Element(string Name, string Value, ValKind Einheit, bool Disabled) { _disabled = Disabled; _Name = Name; _Value = Value; _kind = Einheit; }
private string ConvUnit(ValKind kind, string Name, string val) { string tmp = ""; val = val.Trim(); try { if (kind == ValKind.MPC) tmp += @"w(" + Name.ToLower() + @")=" + (DblSaveConvert(val) / 100d); else if (kind == ValKind.VPC) tmp += @"v(" + Name.ToLower() + @")=" + (DblSaveConvert(val) / 100d); else if (kind == ValKind.DGC) tmp += @"" + Name.ToLower() + @"=" + (DblSaveConvert(val) + 273.15d); else if (kind == ValKind.BAR) tmp += @"" + Name.ToLower() + @"=" + (DblSaveConvert(val) / 1e5d); else tmp += @"" + Name.ToLower() + @"=" + (val); } catch { return ""; } return tmp; }
public Element(Element CopyFrom) { _disabled = CopyFrom.Disabled; _Name = CopyFrom.Name; _Value = CopyFrom.Value; _kind = CopyFrom._kind; }