public void EditPrioEvent(int id, bool prio)
        {
            var db       = new MyDatabaseEntities();
            var speEvent = db.SpecEvents.Find(id);

            speEvent.Prio = prio;

            db.Entry(speEvent).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
            db.Dispose();
        }
        public void EditPrioHabit(int id, bool prio)
        {
            var db    = new MyDatabaseEntities();
            var habit = db.Routines.Find(id);

            habit.Prio = prio;

            db.Entry(habit).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
            db.Dispose();
        }
        public void EditPrioTask(int id, bool prio)
        {
            var db   = new MyDatabaseEntities();
            var task = db.Tasks.Find(id);

            task.Prio = prio;

            db.Entry(task).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
            db.Dispose();
        }
        public void EditHabit(int id, string title, string detail)
        {
            var db    = new MyDatabaseEntities();
            var habit = db.Routines.Find(id);

            habit.Title   = title;
            habit.Details = detail;

            db.Entry(habit).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
            db.Dispose();
        }
        public void EditTask(int id, string title, string detail)
        {
            var db   = new MyDatabaseEntities();
            var task = db.Tasks.Find(id);

            task.Title   = title;
            task.Details = detail;

            db.Entry(task).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
            db.Dispose();
        }
        public void EditSpecEvent(int id, string title, string detail, string location, string start, string end)
        {
            var db      = new MyDatabaseEntities();
            var specEve = db.SpecEvents.Find(id);

            specEve.Title    = title;
            specEve.Location = location;
            specEve.Start    = start;
            specEve.EndTime  = end;
            specEve.Details  = detail;

            db.Entry(specEve).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
            db.Dispose();
        }