Beispiel #1
0
        private void btnMenu_Click(object sender, EventArgs e)
        {
            if (panelSlideMenu.Width == 50)
            {
                panelSlideMenu.Width = 206;
                LogoTransition.ShowSync(logo);
                SlideMenuTransition.ShowSync(panelSlideMenu);
            }
            else
            {
                LogoTransition.Hide(logo);
                panelSlideMenu.Width = 50;
                SlideMenuTransition.ShowSync(panelSlideMenu);
            }

            switch (ucSelected)
            {
            case "ques": (panelContent.Tag as View.ucQuestionDB).resizeFill(); break;

            case "sett": (panelContent.Tag as View.ucSetting).resizeFill(); break;

            case "run": (panelContent.Tag as View.ucRunServer).resizeFill(); break;

            default: break;
            }
        }
Beispiel #2
0
 private void btnMenu_Click(object sender, EventArgs e)
 {
     if (panelLeft.Width == 50)
     {
         panelLeft.Visible = true;
         panelLeft.Width   = 250;
         LogoTransition.ShowSync(pictrueBoxLogo);
     }
     else
     {
         LogoTransition.Hide(pictrueBoxLogo);
         panelLeft.Visible = false;
         panelLeft.Width   = 50;
         PanelTransition.ShowSync(panelLeft);
     }
 }
Beispiel #3
0
 private void btnSandwich_Click(object sender, EventArgs e)
 {
     if (pnlSliding.Width == 50)
     {
         pnlSliding.Visible = false;
         pnlSliding.Width   = 208;
         PanelTransition2.ShowSync(pnlSliding);
         LogoTransition.ShowSync(Logo);
     }
     else
     {
         LogoTransition.Hide(Logo);
         pnlSliding.Visible = false;
         pnlSliding.Width   = 50;
         PanelTransition2.ShowSync(pnlSliding);
     }
 }