Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public void SetSelectPanel(ChatTypePanel panel)
 {
 }