Exemple #1
0
        private void PictureBox_Clicked(object sender, EventArgs e)
        {
            //(sender as PictureBox).BackColor = SkinManager.ColorProvider.SidebarHighlighted;
            m_selectedPictureBox = sender as PictureBox;
            foreach (PictureBox item in Controls)
            {
                if (item != m_selectedPictureBox)
                {
                    item.BackColor = SkinManager.ColorProvider.SidebarBackground;
                }
            }

            UiView view;

            if (sender == pbFollowing)
            {
                view = UiView.Following;
            }
            else if (sender == pbMulitCast)
            {
                view = UiView.Multicast;
            }
            else if (sender == pbSettings)
            {
                view = UiView.Settings;
            }
            else
            {
                throw new NotImplementedException();
            }
            m_uiProvider.SetView(view);
        }