public List <Tuple <string, string> > ToParameterList() { var pms = new List <Tuple <string, string> > { new Tuple <string, string>("frequency", string.Format("{0}MHz", string.Join("MHz;", from f in Frequencies where f.IsActive select f.Frequence))), new Tuple <string, string>("ifbw", string.Format("{0}kHz", string.Join("kHz;", from f in Frequencies where f.IsActive select f.Ifbw))), new Tuple <string, string>("polarization", Polarization), new Tuple <string, string>("hasdwelltime", HasDwellTime ? "on" : "off"), new Tuple <string, string>("ifbwmode", IfbwMode.ToLower()), new Tuple <string, string>("ifbwparam", string.Format("{0}{1}", IfbwParam, IfbwMode.ToLower() == "xdb" ? "db" : "%")), new Tuple <string, string>("hasthreshold", HasThreshold ? "on" : "off"), //new Tuple<string, string>("storage", Storage ? "on" : "off") new Tuple <string, string>("storage", "on") }; if (HasThreshold) { pms.Add(new Tuple <string, string>("thresholdtype", "horizontal")); pms.Add(new Tuple <string, string>("signalthreshold", SignalThreshold + "dBμV")); } if (HasDwellTime) { pms.Add(new Tuple <string, string>("holdtime", DwellTime.ToString())); } return(pms); }
public async Task InsertDwellTime(DwellTime time) { await Collection.InsertOneAsync(time); }