void Log(LookupModel lookup)
 {
     string playerName = Receiver.GetPlayerByKey(Invoker).Info.NickName;
       string commandName = Receiver.GetCommandByKey(COMMANDCODE).Data.Name;
       Receiver.Console.WriteLog(string.Concat(
     "[", playerName, "] ",
       commandName));
 }
        public override void Execute()
        {
            SectorModel sector = Receiver.GetSectorByKey(Arguments.SectorKey);
              PlayerModel player = Receiver.GetPlayerByKey(Arguments.DestinationPlayerKey);
              LookupRules rules = null;
              LookupStyle style = LookupStyle.All;
              switch(Arguments.Mode)
              {
            case LookupOpenMode.All: style = LookupStyle.All; break;
            case LookupOpenMode.KeepVisibleTop: style = LookupStyle.KeepVisibleTop; break;
            case LookupOpenMode.Top: style = LookupStyle.Top; break;
              }
              rules = new LookupRules(style, Arguments.Amount, Arguments.CardKeys);
              bool readOnly = sector.Parent.Key != Receiver.ActivePlayer.Key;
              LookupModel lookup = new LookupModel(lookupKey, sector, rules, player, readOnly);
              Receiver.Lookups.Add(lookup);

              Log(sector, rules);
        }