示例#1
0
        public AdminAwal()
        {
            InitializeComponent();
            Sidepanel.Height = btn_Video.Height;
            Sidepanel.Top    = btn_Video.Top;

            if (!panelUC.Controls.Contains(AdminVideo.Instance))
            {
                panelUC.Controls.Add(AdminVideo.Instance);
                AdminVideo.Instance.Dock = DockStyle.Fill;
                AdminVideo.Instance.BringToFront();
                AdminVideo Video = new AdminVideo();
                Video.VideoList("");
            }
            else
            {
                AdminVideo.Instance.BringToFront();
            }

            //Sidepanel.Height = btn_Slideshow.Height;
            //Sidepanel.Top = btn_Slideshow.Top;
            //if (!panelUC.Controls.Contains(AdminSlideshow.Instance))
            //{
            //    panelUC.Controls.Add(AdminSlideshow.Instance);
            //    AdminSlideshow.Instance.Dock = DockStyle.Fill;
            //    AdminSlideshow.Instance.BringToFront();
            //    AdminSlideshow Slideshow = new AdminSlideshow();
            //    //Slideshow.SlideList("");
            //}
            //else
            //    AdminSlideshow.Instance.BringToFront();
        }
示例#2
0
        private void btn_Video_Click(object sender, EventArgs e)
        {
            Sidepanel.Height = btn_Video.Height;
            Sidepanel.Top    = btn_Video.Top;

            if (!panelUC.Controls.Contains(AdminVideo.Instance))
            {
                panelUC.Controls.Add(AdminVideo.Instance);
                AdminVideo.Instance.Dock = DockStyle.Fill;
                AdminVideo.Instance.BringToFront();
                AdminVideo Video = new AdminVideo();
                Video.VideoList("");
            }
            else
            {
                AdminVideo.Instance.BringToFront();
            }
        }