예제 #1
0
            protected override void OnTimeRangeSelected(TimeRangeSelectedArgs e)
            {
                var toBeCreated = new TimmApp.Models.Event
                {
                    eventStart = e.Start,
                    eventEnd   = e.End,
                    text       = (string)e.Data["name"]
                };

                db.events.Add(toBeCreated);
                db.SaveChanges();
                Update();
            }
예제 #2
0
 protected override void OnTimeRangeSelected(TimeRangeSelectedArgs e)
 {
     var toBeCreated = new TimmApp.Models.Event
     {
         eventStart = e.Start,
         eventEnd = e.End,
         text = (string)e.Data["name"]
     };
     db.events.Add(toBeCreated);
     db.SaveChanges();
     Update();
 }