Ejemplo n.º 1
0
        protected void Update()
        {
            if (Binding == null)
            {
                return;
            }

            var keyBinding = ((ModelKeyBinding)Binding);

            if (keyBinding == null)
            {
                return;                     // Not sure how this could ever happen but nice to be safe
            }
            if (IsKey(keyBinding))
            {
                CommandBinding.ExecuteCommand();
            }
        }