Exemple #1
0
 protected override void OnExecute(Command com)
 {
     if (com.ContainsData <DefaultData>())
     {
         DefaultData data = com.GetData <DefaultData> ();
         if (data.DataType == DataType.UShort)
         {
             Cover cover = CoverManager.GetCover((ushort)data.Value);
             this.StartTransition(cover);
         }
         else if (data.DataType == DataType.Long)
         {
             Input = (long)data.Value;
         }
     }
 }