示例#1
0
        private void menu_Click(object sender, EventArgs e)
        {
            var logo1 = new Point(16, 32);
            var logo2 = new Point(271, 32);
            var news  = new Point(316, 291);
            var newss = new Point(60, 56);

            if (sidemenu.Width == 60)
            {
                //panel1.Location = news;
                menu.Location     = logo2;
                sidemenu.Visible  = false;
                copyright.Visible = true;
                sidemenu.Width    = 334;
                PanelAnimator2.ShowSync(sidemenu);


                //panel1.Location = news;
            }
            else
            {
                //panel1.Location = newss;
                menu.Location     = logo1;
                copyright.Visible = false;
                sidemenu.Visible  = false;
                sidemenu.Width    = 60;
                PanelAnimator.ShowSync(sidemenu);
            }
        }
 private void btnMenu_Click(object sender, EventArgs e)
 {
     if (pnlMenu.Width == 58)
     {
         pnlMenu.Visible = false;
         pnlMenu.Width   = 187;
         PanelAnimator.ShowSync(pnlMenu);
         LogoAnimator.ShowSync(logo);
     }
     else
     {
         logo.Visible    = false;
         pnlMenu.Visible = false;
         pnlMenu.Width   = 58;
         PanelAnimator2.ShowSync(pnlMenu);
     }
 }
 private void Slider_Click(object sender, EventArgs e)
 {
     if (PanelMenu.Width == 50)
     {
         PanelMenu.Visible = false;
         PanelMenu.Width   = 230;
         PanelAnimator2.ShowSync(PanelMenu);
         LogoAnimator.ShowSync(Lb_admin);
     }
     else
     {
         LogoAnimator.HideSync(Lb_admin);
         PanelMenu.Visible = false;
         PanelMenu.Width   = 50;
         PanelAnimator.ShowSync(PanelMenu);
     }
 }
示例#4
0
 private void BtnMenu_Click(object sender, EventArgs e)
 {
     if (menuvertical.Width == 50)
     {
         menuvertical.Visible = false;
         menuvertical.Width   = 230;
         PanelAnimator2.ShowSync(menuvertical);
         LogoAnimator.ShowSync(logo);
     }
     else
     {
         LogoAnimator.HideSync(logo);
         menuvertical.Visible = false;
         menuvertical.Width   = 50;
         PanelAnimator2.ShowSync(menuvertical);
     }
 }
示例#5
0
 private void button6_Click(object sender, EventArgs e)
 {
     //timer.Start();
     if (PanelMenu.Width == 57)
     {
         PanelMenu.Visible = false;
         PanelMenu.Width   = 225;
         PanelAnimator2.ShowSync(PanelMenu);
         LogoAnimator.ShowSync(Logo);
     }
     else
     {
         LogoAnimator.HideSync(Logo);
         PanelMenu.Visible = false;
         PanelMenu.Width   = 57;
         PanelAnimator.ShowSync(PanelMenu);
     }
 }
示例#6
0
 private void btnMnu_Click(object sender, EventArgs e)
 {
     if (sidemenu.Height == 610 && sidemenu.Width == 220)
     {
         sidemenu.Height     = 610;
         sidemenu.Width      = 50;
         btnMnu.Location     = new Point(12, 19);
         logIn1.Location     = new Point(50, 40);
         logIn1.Width        = 900;
         tutorials1.Location = new Point(50, 40);
         tutorials1.Width    = 900;
         faq1.Location       = new Point(50, 40);
         faq1.Width          = 900;
         quiz1.Location      = new Point(50, 40);
         quiz1.Width         = 900;
         credit1.Location    = new Point(50, 40);
         credit1.Width       = 900;
         logo.Hide();
         PanelAnimator1.ShowSync(sidemenu);
     }
     else
     {
         sidemenu.Height     = 610;
         sidemenu.Width      = 220;
         btnMnu.Location     = new Point(182, 19);
         logIn1.Location     = new Point(217, 40);
         logIn1.Width        = 730;
         tutorials1.Location = new Point(217, 40);
         tutorials1.Width    = 730;
         faq1.Location       = new Point(217, 40);
         faq1.Width          = 730;
         quiz1.Location      = new Point(217, 40);
         quiz1.Width         = 730;
         credit1.Location    = new Point(217, 40);
         credit1.Width       = 730;
         PanelAnimator2.ShowSync(sidemenu);
         LogoAnimator.ShowSync(logo);
     }
 }