public DroneConfiguration() { DroneHostname = "192.168.1.1"; General = new GeneralSection(); Control = new ControlSection(); Network = new NetworkSection(); Pic = new PicSection(); Video = new VideoSection(); Leds = new LedsSection(); Detect = new DetectSection(); Syslog = new SyslogSection(); Userbox = new UserboxSection(); Gps = new GpsSection(); Custom = new CustomSection(); _items = GetItems(General) .Concat(GetItems(Control)) .Concat(GetItems(Network)) .Concat(GetItems(Pic)) .Concat(GetItems(Video)) .Concat(GetItems(Leds)) .Concat(GetItems(Detect)) .Concat(GetItems(Syslog)) .Concat(GetItems(Userbox)) .Concat(GetItems(Gps)) .Concat(GetItems(Custom)) .ToDictionary(x => x.Key); }
public DroneConfiguration() { _items = new Dictionary<string, string>(); _changes = new Queue<KeyValuePair<string, string>>(); DroneHostname = "192.168.1.1"; General = new GeneralSection(this); Control = new ControlSection(this); Network = new NetworkSection(this); Pic = new PicSection(this); Video = new VideoSection(this); Leds = new LedsSection(this); Detect = new DetectSection(this); Syslog = new SyslogSection(this); Userbox = new UserboxSection(this); Gps = new GpsSection(this); Custom = new CustomSection(this); }