Exemplo n.º 1
0
        public BookingHandler()
        {
            col         = new Collector();
            _fitness    = new ObservableCollection <Event>();
            _dance      = new ObservableCollection <Event>();
            _yoga       = new ObservableCollection <Event>();
            _unhandeled = new ObservableCollection <Event>();

            foreach (var Event in col.Events)
            {
                if (Event.Type == "Fitness")
                {
                    Fitness.Add(Event);
                }
                if (Event.Type == "Yoga")
                {
                    Yoga.Add(Event);
                }
                if (Event.Type == "Dance")
                {
                    Dance.Add(Event);
                }
                if (Event.Type != "Fitness" && Event.Type != "Fitness" && Event.Type != "Dance")
                {
                    Unhandeled.Add(Event);
                }
            }
        }