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