private void AddSerchButtons(int userAllianceId) { if (Id == ConfederationAlliId) { return; } AddButton(userAllianceId == Id ? ButtonsView.LeaveFromAlliance(Id) : ButtonsView.JoinToAlliacne(Id, Name)); }