private void GenerateDemoEntries() { AktorenPrepared = new Aktor[8]; AktorenPrepared[0] = new Aktor(CounterEllapsedInformer) //constructor used to provide instance of Informer delegate to Aktor Object { Id = 100, Description = "Beschreibung", Name = 2.5, Room = "Raum", PosX = 7.5, PosY = 4.34, ValueType = "WertTyp", ItemType = "irgendwas", Mode = "Modus", Value = true, IsInDesignMode = "Nope" }; AktorenPrepared[1] = new Aktor(CounterEllapsedInformer) { Id = 101, Description = "Licht Wohnzimmer", Name = 2.5, Room = "WZ", PosX = 7.5, PosY = 3.5, ValueType = "Boolean", ItemType = "irgendwas", Mode = "Auto", Value = true, IsInDesignMode = " " }; AktorenPrepared[2] = new Aktor(CounterEllapsedInformer) { Id = 102, Description = "Licht Aussen", Name = 2.6, Room = "Garten", PosX = 6.3, PosY = 9.0, ValueType = "Boolean", ItemType = "irgendwas", Mode = "Auto", Value = true, IsInDesignMode = " " }; AktorenPrepared[3] = new Aktor(CounterEllapsedInformer) { Id = 103, Description = "Licht Badezimmer", Name = 2.3, Room = "Bad", PosX = 5.7, PosY = 2.4, ValueType = "Boolean", ItemType = "irgendwas", Mode = "Auto", Value = true, IsInDesignMode = " " }; AktorenPrepared[4] = new Aktor(CounterEllapsedInformer) { Id = 104, Description = "Dose Badezimmer", Name = 2.2, Room = "Bad", PosX = 9.2, PosY = 9.5, ValueType = "Boolean", ItemType = "irgendwas", Mode = "Auto", Value = true, IsInDesignMode = " " }; AktorenPrepared[5] = new Aktor(CounterEllapsedInformer) { Id = 105, Description = "Dose Wohnzimmer", Name = 2.1, Room = "WZ", PosX = 6.3, PosY = 1.8, ValueType = "Boolean", ItemType = "irgendwas", Mode = "Auto", Value = true, IsInDesignMode = " " }; AktorenPrepared[6] = new Aktor(CounterEllapsedInformer) { Id = 106, Description = "Licht Küche", Name = 1.7, Room = "Küche", PosX = 6.3, PosY = 3.7, ValueType = "Boolean", ItemType = "irgendwas", Mode = "Auto", Value = true, IsInDesignMode = " " }; AktorenPrepared[7] = new Aktor(CounterEllapsedInformer) { Id = 107, Description = "Leselampe Wohnzimmer", Name = 3.8, Room = "WZ", PosX = 1.7, PosY = 6.2, ValueType = "Boolean", ItemType = "irgendwas", Mode = "Auto", Value = true, IsInDesignMode = " " }; SensorenPrepared = new Sensor[8]; SensorenPrepared[0] = new Sensor(CounterEllapsedInformer) //constructor used to provide instance of Informer delegate to Aktor Object { Id = 1, Description = "Beschreibung", Name = 2.5, Room = "Raum", PosX = 7.5, PosY = 4.34, ValueType = "WertTyp", Status = true, Mode = "Modus", Value = 3.45 }; SensorenPrepared[1] = new Sensor(CounterEllapsedInformer) { Id = 2, Description = "TA Wohnzimmer", Name = 0.01, Room = "WZ", PosX = 0, PosY = 0, ValueType = "Boolean", Status = true, Mode = "Enabled", Value = 3.45 }; SensorenPrepared[2] = new Sensor(CounterEllapsedInformer) { Id = 3, Description = "TA Badezimmer", Name = 0.02, Room = "Bad", PosX = 0, PosY = 0, ValueType = "Boolean", Status = true, Mode = "Enabled", Value = 3.45 }; SensorenPrepared[3] = new Sensor(CounterEllapsedInformer) { Id = 4, Description = "IR Haustüre", Name = 0.03, Room = "Garderobe", PosX = 0, PosY = 0, ValueType = "Boolean", Status = true, Mode = "Enabled", Value = 3.45 }; SensorenPrepared[4] = new Sensor(CounterEllapsedInformer) { Id = 5, Description = "IR Wohnzimmer", Name = 0.04, Room = "WZ", PosX = 0, PosY = 0, ValueType = "Boolean", Status = true, Mode = "Enabled", Value = 3.45 }; SensorenPrepared[5] = new Sensor(CounterEllapsedInformer) { Id = 6, Description = "Temp Badezimmer", Name = 0.05, Room = "Bad", PosX = 0, PosY = 0, ValueType = "Single", Status = true, Mode = "Enabled", Value = 3.45 }; SensorenPrepared[6] = new Sensor(CounterEllapsedInformer) { Id = 7, Description = "Temp Aussen Nord", Name = 0.06, Room = "Garten", PosX = 0, PosY = 0, ValueType = "Single", Status = true, Mode = "Enabled", Value = 3.45 }; SensorenPrepared[7] = new Sensor(CounterEllapsedInformer) { Id = 8, Description = "Dämmerungssensor Nord", Name = 0.07, Room = "Garten", PosX = 0, PosY = 0, ValueType = "Int32", Status = true, Mode = "Enabled", Value = 3.45 }; /* * // Alter Version: * var temp = new Aktor(CounterEllapsedInformer) //constructor used to provide instance of Informer delegate to Aktor Object * { * Id = NewID, * Description = "Beschreibung", * Name = 2.5, * Room = "Raumo", * PosX = 7.5, * PosY = 4.34, * ValueType = "halloo", * ItemType = "irgendwas", * Mode = "moodus", * Value = true, * IsInDesignMode = "ssdfsd" * }; * AktorenList.Add(temp); */ }
private void DataGeneratedFromGenerator(Aktor obj) { AktorenList.Add(obj); }