Ejemplo n.º 1
0
        /*Constructor*/
        public EventViewModel()
        {
            Eventsingelton = EventCatalogSingleton.Instance;

            DateTime dt = System.DateTime.Now;

            _date = new DateTimeOffset(dt.Year, dt.Month, dt.Day, 0, 0, 0, 0, new TimeSpan());
            _time = new TimeSpan(dt.Hour, dt.Minute, dt.Second);

            /*RelayCommand og refrence til handler*/
            eventHandler = new myEventHandler(this);



            CreateEventCommand = new RelayCommand(eventHandler.CreateEvent, null);
            DeleteEventComand  = new RelayCommand(eventHandler.DeleteEvent, checkOmListenErEmpty);
            PersistencyService.HentDataFraDiskAsync();
        }