Exemple #1
0
        /// <summary>
        /// Adds the tagg data to the list.
        /// </summary>
        public static void addData()
        {
            List <Tagg> taggs = new List <Tagg>();

            taggs.Add(Tagg1);
            taggs.Add(Tagg2);
            taggs.Add(Tagg3);
            taggs.Add(Tagg4);
            taggs.Add(Tagg5);
            taggs.Add(Tagg6);
            taggs.Add(Tagg7);
            taggs.Add(Tagg8);
            taggs.Add(Tagg9);
            taggs.Add(Tagg10);
            taggs.Add(Tagg11);
            taggs.Add(Tagg12);
            taggs.Add(Tagg13);
            taggs.Add(Tagg14);
            taggs.Add(Tagg15);
            taggs.Add(Tagg16);
            taggs.Add(Tagg17);
            taggs.Add(Tagg18);
            taggs.Add(Tagg19);
            taggs.Add(Tagg20);
            taggs.Add(Tagg21);

            DatabaseCommunication.AddTaggs(taggs);
        }
Exemple #2
0
        /// <summary>
        /// Adds the data to list.
        /// </summary>
        public static void addData()
        {
            List <Tenant> tenants = new List <Tenant>();

            tenants.Add(Tenant1);
            tenants.Add(Tenant2);
            tenants.Add(Tenant3);
            tenants.Add(Tenant4);
            tenants.Add(Tenant5);
            tenants.Add(Tenant6);
            tenants.Add(Tenant7);
            tenants.Add(Tenant8);
            tenants.Add(Tenant9);
            tenants.Add(Tenant10);
            tenants.Add(Tenant11);
            tenants.Add(Tenant12);
            tenants.Add(Tenant13);
            tenants.Add(Tenant14);
            tenants.Add(Tenant15);
            tenants.Add(Tenant16);
            tenants.Add(Tenant17);
            tenants.Add(Tenant18);
            tenants.Add(Tenant19);
            tenants.Add(Tenant20);
            tenants.Add(Tenant21);
            DatabaseCommunication.AddTenants(tenants);
        }
Exemple #3
0
        /// <summary>
        /// Adds the data.
        /// </summary>
        public static void addData()
        {
            List <Event> events = new List <Event>();

            events.Add(event1);
            events.Add(event2);
            events.Add(event3);
            events.Add(event4);
            events.Add(event5);
            events.Add(event6);
            events.Add(event7);
            events.Add(event8);
            events.Add(event9);
            events.Add(event10);
            events.Add(event11);
            events.Add(event12);
            events.Add(event13);
            events.Add(event14);
            events.Add(event15);
            events.Add(event16);
            events.Add(event17);
            events.Add(event18);
            events.Add(event19);
            events.Add(event20);


            DatabaseCommunication.AddEvent(events);
        }
Exemple #4
0
        /// <summary>
        /// Adds the data.
        /// </summary>
        public static void addData()
        {
            List <Door> doors = new List <Door>();

            doors.Add(door);
            doors.Add(door1);
            doors.Add(door2);
            doors.Add(door3);
            doors.Add(door4);
            doors.Add(door5);
            doors.Add(door6);
            DatabaseCommunication.AddDoor(doors);
        }
Exemple #5
0
        public static void addData()
        {
            List <Apartment> apartments = new List <Apartment>();

            apartments.Add(Apartment1);
            apartments.Add(Apartment2);
            apartments.Add(Apartment3);
            apartments.Add(Apartment4);
            apartments.Add(Apartment5);
            apartments.Add(Apartment6);
            apartments.Add(Apartment7);
            apartments.Add(Apartment8);

            DatabaseCommunication.AddApartment(apartments);
        }
Exemple #6
0
        static void Main(string[] args)
        {
            DatabaseCommunication.CreateDatabase();
            var byDoor     = DoorEventsLog.FindEntriesByDoor("LGH");
            var byCode     = DoorEventsLog.FindEntriesByEvent("DÖIN");
            var byLocation = DoorEventsLog.FindEntriesByLocation("TVÄTT");
            var byTagg     = DoorEventsLog.FindEntriesByTag("0101A");
            var byTenant   = DoorEventsLog.FindEntriesByTenant("Liam Jönsson");
            var tenants    = DoorEventsLog.ListTenantsAt("0101");

            OutputData("Serch by door: ", byDoor);
            OutputData("Serch by events id: ", byCode);
            OutputData("Serch by location: ", byLocation);
            OutputData("Serch by tag id: ", byTagg);
            OutputData("Serch by tenant: ", byTenant);
            OutputTenant(tenants);

            DoorEventsLog.LogEntry("Serch by door: ", byDoor);
            Console.ReadKey();
        }