Exemple #1
0
 public KeyBind(string description)
 {
     this.description   = description;
     this.defaultBind   = new ExtEvent();
     this.requiredBound = false;
     SetBinding(defaultBind);
 }
Exemple #2
0
 public KeyBind(string description, bool requiredBound, KeyCode defaultKeyCode)
 {
     this.description   = description;
     this.defaultBind   = new ExtEvent(defaultKeyCode, false);
     this.requiredBound = requiredBound;
     SetBinding(defaultBind);
 }
Exemple #3
0
 public void SetBinding(ExtEvent ev)
 {
     binding      = ev;
     humanBinding = ev.ToHumanString();
     if (changed != null)
     {
         changed();
     }
 }
        public ActionResult ListEvents()
        {
            var hlpView   = new HelpersViewModel();
            var eventList = new List <ExtEvent> {
            };

            List <Events> u = db.Events.ToList().Where(
                e => (e.EvEndDate >= DateTime.Now) && e.EvType == 20 && e.EvStatus == 2)
                              .OrderBy(e => e.EvStartDate).ToList();

            foreach (Events events in u)
            {
                var Event = new ExtEvent();
                Event.EvTitle        = events.EvTitle;
                Event.EvText         = events.EvText;
                Event.EvAdmission    = events.EvAdmission;
                Event.EvImgPath1     = events.EvImgPath1;
                Event.EventLocations = hlpView.GetLocations(events.EventId);
                Event.EvStartDate    = events.EvStartDate;
                Event.EvEndDate      = events.EvEndDate;
                eventList.Add(Event);
            }
            return(PartialView(eventList));
        }
Exemple #5
0
 public void SetFromConfig(string evStr)
 {
     SetBinding(ExtEvent.Parse(evStr));
 }