示例#1
0
    public static void ProfileClickEvent(object obj, EventArgs args)
    {
        ProtoPlayerCharacter player = playerOps.Profile(client);

        if (profileTable == null)
        {
            profileTable = new ProfileTable(player.playerID, player.firstName + " " + player.familyName, player.ownedFiefs, player.location, player.armyID, Convert.ToString(player.purse));
        }
        else
        {
            profileTable.DestroyTable();
            profileTable = new ProfileTable(player.playerID, player.firstName + " " + player.familyName, player.ownedFiefs, player.location, player.armyID, Convert.ToString(player.purse));
        }
        tableLayout.Attach(profileTable.getProfileLayout(), 1, 2, 4, 5);
        myWin.ShowAll();
    }
 public ProtoPlayerCharacter Profile()
 {
     return(_playerOps.Profile(_testClient));
 }