public void ChangeChildSelection(ChatBarLabel clickedChatBar) { if (this.IsGeneral) { if (this.KingdomChatBar != null && this.GuildChatBar != null) { if (this.KingdomChatBar.IsSelected) { if (clickedChatBar == this.KingdomChatBar) { return; } this.KingdomChatBar.IsSelected = false; this.GuildChatBar.IsSelected = true; } else { if (clickedChatBar == this.GuildChatBar) { return; } this.KingdomChatBar.IsSelected = true; this.GuildChatBar.IsSelected = false; } } } }
public void SetChildsChatBar(ChatBarLabel kingdomChatBar, ChatBarLabel guildChatBar) { this.KingdomChatBar = kingdomChatBar; this.GuildChatBar = guildChatBar; }