private void PanGroup_MouseClick(object sender, MouseEventArgs e) { var chatType = ((ChatTypePanel)sender).ChatType; if (selectedPan != null && selectedPan.ChatType != chatType) { selectedPan.BackColor = defaultBackColor; } selectedPan = ((ChatTypePanel)sender); switch (chatType) { case ChatType.PrivateChat: panGroup.IsSelected = false; panTeam.IsSelected = false; break; case ChatType.GroupChat: panPrivate.IsSelected = false; panTeam.IsSelected = false; break; case ChatType.TeamChat: panPrivate.IsSelected = false; panGroup.IsSelected = false; break; default: break; } ShowOrHideContent(chatType); }
public void SetSelectPanel(ChatTypePanel panel) { }