예제 #1
0
        private void pictureBox1_Click_1(object sender, EventArgs e)
        {
            // có  hiệu ứng
            if (pnlSiderMenu.Width == 53)
            {
                pnlSiderMenu.Visible = false;
                pnlSiderMenu.Width   = 150;
                PanelAnimator.ShowSync(pnlSiderMenu);
                LogoAnimator.ShowSync(piclogo);
            }
            else
            {
                LogoAnimator.Hide(piclogo);
                pnlSiderMenu.Visible = false;
                pnlSiderMenu.Width   = 53;
                PanelAnimator.ShowSync(pnlSiderMenu);
            }


            // k hiệu ứng
            //if (sideMenu.Width==190)
            //{
            //    sideMenu.Width = 50;
            //}
            //else
            //{
            //    sideMenu.Width = 190;
            //}
        }
예제 #2
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 (menu.Width == 70)
     {
         menu.Visible          = false;
         menu.Width            = 246;
         menuChild.Width       = 228;
         panelContent.Width    = 1092;
         panelContent.Height   = 710;
         panelContent.Location = new Point(262, 46);
         btnMenu.Location      = coorMenuTmp;
         PanelAnimator.ShowSync(menu);
         logoAnimator.ShowSync(logo);
     }
     else
     {
         logoAnimator.Hide(logo);
         menu.Visible          = false;
         menu.Width            = 70;
         menuChild.Width       = 52;
         panelContent.Width    = 1268;
         panelContent.Height   = 710;
         panelContent.Location = new Point(86, 46);
         Point coorIconMenu = new Point(25, 28);
         btnMenu.Location = coorIconMenu;
         PanelAnimator.ShowSync(menu);
     }
 }
예제 #4
0
 //Abre e Fecha o menu
 private void bunifuImageButton1_Click(object sender, EventArgs e)
 {
     //Se menu estiver com tamanho de aberto, feche
     if (sideMenu.Width == 252)
     {
         Logo.Visible    = false;
         lilnote.Visible = true;
         LogoAnimator.Hide(Logo);
         sideMenu.Visible = false;
         sideMenu.Width   = 40;
         //Executa  Animaçao
         PanelAnimator.ShowSync(sideMenu);
     }
     //Se estiver com tamanho de pequeno
     else
     {
         Logo.Visible     = false;
         lilnote.Visible  = false;
         sideMenu.Visible = false;
         sideMenu.Width   = 252;
         //Executa animaçoes de Girar logo e Abrir Menu
         PanelAnimator.ShowSync(sideMenu);
         LogoAnimator.ShowSync(Logo);
     }
 }
예제 #5
0
 private void OpenPanel()
 {
     if (dashboardMenuPanel.Width == 50)
     {
         dashboardMenuPanel.Visible = false;
         dashboardMenuPanel.Width   = 200;
         PanelAnimator.ShowSync(dashboardMenuPanel);
         PictureAnimator.ShowSync(libraryPicture);
     }
 }
 private void btn_menu_Click(object sender, EventArgs e)
 {
     if (sidemenu.Width == 50)
     {
         sidemenu.Visible = false;
         sidemenu.Width   = 220;
         PanelAnimator.ShowSync(sidemenu);
     }
     else
     {
         sidemenu.Visible = false;
         sidemenu.Width   = 50;
         PanelAnimator.ShowSync(sidemenu);
     }
 }
예제 #7
0
 private void bunifuImageButton1_Click(object sender, EventArgs e)
 {
     if (sideMenu.Width == 55)
     {
         sideMenu.Visible = false;
         PanelAnimator.ShowSync(sideMenu);
         sideMenu.Width = 240;
     }
     else
     {
         sideMenu.Visible = false;
         sideMenu.Width   = 55;
         PanelAnimator.ShowSync(sideMenu);
     }
 }
 private void bunifuImageButton1_Click(object sender, EventArgs e)
 {
     if (slidemenu.Width == 50)
     {
         slidemenu.Width = 285;
         PanelAnimator.ShowSync(slidemenu);
     }
     else
     {
         slidemenu.Width = 50;
         PanelAnimator.ShowSync(slidemenu);
     }
     //dit is nog niet klaar de slidepanel doet telkens plus 50
     Console.Write(slidemenu.Location);
 }
예제 #9
0
 private void btn_SlideMe_Click(object sender, EventArgs e)
 {
     if (sidemenu.Width == 40)
     {
         sidemenu.Visible = false;
         sidemenu.Width   = 195;
         PanelAnimator.ShowSync(sidemenu);
     }
     else
     {
         sidemenu.Visible = false;
         sidemenu.Width   = 40;
         PanelAnimator.ShowSync(sidemenu);
     }
 }
예제 #10
0
 private void BtnMnu_Click(object sender, EventArgs e)
 {
     if (sideMenu.Width == 50)
     {
         sideMenu.Visible = false;
         sideMenu.Width   = 259;
         PanelAnimator.ShowSync(sideMenu);
         LogoAnimator.ShowSync(logo);
     }
     else
     {
         LogoAnimator.Hide(logo);
         sideMenu.Visible = true;
         sideMenu.Width   = 50;
         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);
     }
 }
예제 #12
0
파일: Form1.cs 프로젝트: hdriel/C-_Schedule
 private void btn_menu_Click(object sender, EventArgs e)
 {
     if (slidemenu.Width == 50)
     {
         slidemenu.Visible = false;
         slidemenu.Width = 300;
         PanelAnimator.ShowSync(slidemenu);
         LogoAnimator.ShowSync(logo);
     }
     else
     {
         LogoAnimator.Hide(logo);
         slidemenu.Visible = false;
         slidemenu.Width = 50;
         PanelAnimator.ShowSync(slidemenu);
     }
 }
예제 #13
0
 private void btnMenu_Click(object sender, EventArgs e)
 {
     if (sideMenu.Width == 40)
     {
         sideMenu.Visible = false;
         sideMenu.Width   = 178;
         btnMenu.SetBounds(137, 6, 40, 40);
         PanelAnimator.ShowSync(sideMenu);
     }
     else
     {
         sideMenu.Visible = false;
         btnMenu.SetBounds(2, 3, 40, 40);
         sideMenu.Width = 40;
         PanelAnimator.ShowSync(sideMenu);
     }
 }
예제 #14
0
 private void BTNmenu1_Click(object sender, EventArgs e)
 {
     {
         if (slidemenu.Width == 70)
         {
             slidemenu.Visible = false;
             slidemenu.Width   = 260;
             PanelAnimator.ShowSync(slidemenu);
         }
         else
         {
             slidemenu.Visible = false;
             slidemenu.Width   = 70;
             PanelAnimator.ShowSync(slidemenu);
         }
     }
 }
예제 #15
0
 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);
     }
 }
예제 #16
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);
     }
 }
예제 #17
0
파일: Main.cs 프로젝트: seizue/Sticky-Ghost
 private void BtnMenu_Click(object sender, EventArgs e)
 {
     //Makes the Panel Menu into 270 width
     if (PanelMenu.Width == 0)
     {
         PanelMenu.Visible = false;
         PanelMenu.Width   = 270;
         PanelAnimator.ShowSync(PanelMenu);
     }
     else
     {
         //Brings back the Panel Menu into 0 width
         PanelMenu.Visible = false;
         PanelMenu.Width   = 0;
         COPanel.Visible   = false;
         COPanel.Width     = 0;
     }
 }
 private void btnMenu_Click(object sender, EventArgs e)
 {
     if (sidemenu.Width == 50)
     {
         sidemenu.Visible = false;
         sidemenu.Width   = 240;
         PanelAnimator.ShowSync(sidemenu);
         logoAnimator.ShowSync(logo);
     }
     else
     {
         logo.Hide();
         logoAnimator.Hide(logo);
         sidemenu.Visible = false;
         sidemenu.Width   = 50;
         PanelAnimator.ShowSync(sidemenu);
     }
 }
예제 #19
0
        private void btnMenu_Click(object sender, EventArgs e)
        {
            if (sidemenu.Width == 49)
            {
                sidemenu.Width = 212;

                sidemenu.Visible = false;

                PanelAnimator.ShowSync(sidemenu);
                LogoAnimator.ShowSync(logo);
            }
            else
            {
                LogoAnimator.Hide(logo);
                sidemenu.Width = 49;
                PanelAnimator.ShowSync(sidemenu);
            }
        }
예제 #20
0
파일: Main.cs 프로젝트: AzazelMaqsood/PPapp
 private void bunifuImageButton1_Click(object sender, EventArgs e)
 {
     if (sidemenu.Width == 52)
     {
         sidemenu.Visible = false;
         sidemenu.Width   = 225;
         PanelAnimator.ShowSync(sidemenu);
         LogoAnimator1.ShowSync(LogoFull);
         //btnMenu.Location = new Point(269, 18);
     }
     else
     {
         LogoAnimator1.Hide(LogoFull);
         sidemenu.Visible = false;
         sidemenu.Width   = 52;
         PanelAnimator.ShowSync(sidemenu);
         //btnMenu.Location = new Point(17, 18);
     }
 }
예제 #21
0
 private void MenuButton_Click(object sender, EventArgs e)
 {
     if (LeftTransformMenu.Width == 50)
     {
         LeftTransformMenu.Visible = false;
         LeftTransformMenu.Width   = 225;
         PanelAnimator.ShowSync(LeftTransformMenu);
         LogoAnimator.Hide(smallLogo);
         LogoAnimator.Show(BigLogo);
     }
     else
     {
         LogoAnimator.Hide(BigLogo);
         LogoAnimator.Show(smallLogo);
         LeftTransformMenu.Visible = false;
         LeftTransformMenu.Width   = 50;
         PanelAnimator.ShowSync(LeftTransformMenu);
     }
 }
예제 #22
0
 private void btn_MenuAnimator_Click(object sender, EventArgs e)
 {
     if (Panel_Left.Width == 240)
     {
         Panel_Left.Width     = 55;
         lbl_LogoLine.Visible = false;
         Panel_Left.Visible   = false;
         panel1.Left         += 50;
         PanelAnimator.ShowSync(Panel_Left);
     }
     else
     {
         Panel_Left.Width     = 240;
         lbl_LogoLine.Visible = true;
         Panel_Left.Visible   = false;
         panel1.Left         -= 50;
         PanelAnimator.ShowSync(Panel_Left);
     }
 }
예제 #23
0
 /* METHOD : (4)
  * ********************************************************************************************************
  * Resize panel sidebar
  * ********************************************************************************************************
  */
 private void BtnHamburger_Click(object sender, EventArgs e)
 {
     if (PnlSideBar.Width == 55)
     {
         //Expand
         PnlSideBar.Visible = false;
         PnlSideBar.Width   = 285;
         PanelAnimator.ShowSync(PnlSideBar);
         LogoAnimator.ShowSync(PbOrgLogoLarge);
     }
     else
     {
         //Minimize
         LogoAnimator.Hide(PbOrgLogoLarge);
         PnlSideBar.Visible = false;
         PnlSideBar.Width   = 55;
         PanelAnimator.ShowSync(PnlSideBar);
     }
 }
예제 #24
0
 private void btnDrawer_Click(object sender, EventArgs e)
 {
     if (sideMenu.Width == 50)
     {
         LogoVertAnimator.HideSync(LogoVertical);
         sideMenu.Visible = false;
         sideMenu.Width   = 250;
         PanelAnimator.ShowSync(sideMenu);
         LogoAnimator.ShowSync(logo);
     }
     else
     {
         LogoAnimator.HideSync(logo);
         sideMenu.Visible = false;
         sideMenu.Width   = 50;
         PanelAnimator.ShowSync(sideMenu);
         LogoVertAnimator.ShowSync(LogoVertical);
     }
 }
예제 #25
0
 private void BtnMenu_Click(object sender, EventArgs e)
 {
     if (SideMenu.Width == 35)
     {
         SideMenu.Visible = false;
         SideMenu.Width   = 135;
         BtnMenu.Location = new Point(108, 5);
         PanelAnimator.ShowSync(SideMenu);
         LogoAnimator.ShowSync(BtnMenu);
     }
     else
     {
         SideMenu.Visible = false;
         SideMenu.Width   = 35;
         BtnMenu.Location = new Point(7, 5);
         PanelAnimator.ShowSync(SideMenu);
         LogoAnimator.ShowSync(BtnMenu);
     }
 }
예제 #26
0
 //Csináltam egy menü gombot amely kattintásra lekicsinyíti a panelt, majd újra kattintásra az eredeti méretre helyezi
 //Elhelyeztem egy animátort amit kattintásra meghívok.
 //Az oldalso panel alatt található egy másik panel amire tettem egy "Készítő" labelt.
 //Felirat Start függvényt lentebb megtekintheted, amikor kattintasz a menüre és a menü a megfeleő méretbe kerül elindítja
 //a Felirat_Start fügvényt és elkezdődik a Label animációja.
 private void menu_Click(object sender, EventArgs e)
 {
     if (OldalsoPanel.Width == 20)
     {
         OldalsoPanel.Width   = 175;
         OldalsoPanel.Visible = false;
         PanelAnimator.ShowSync(OldalsoPanel);
         Keszitő.Visible = false;
         Felirat_Stop();
     }
     else
     {
         OldalsoPanel.Visible = false;
         OldalsoPanel.Width   = 20;
         PanelAnimator.ShowSync(OldalsoPanel);
         Keszitő.Visible = true;
         Felirat_Start();
     }
 }
예제 #27
0
 private void btnMenu_Click(object sender, EventArgs e)
 {
     pnDMQL.Hide();
     pnHĐ.Hide();
     pnTB.Hide();
     if (sideMenu.Width == 52)
     {
         btnMenu.Location = new Point(196, 6);
         sideMenu.Visible = false;
         sideMenu.Width   = 228;
         PanelAnimator.ShowSync(sideMenu);
     }
     else
     {
         btnMenu.Location = new Point(12, 6);
         sideMenu.Visible = false;
         sideMenu.Width   = 52;
         PanelAnimator.ShowSync(sideMenu);
     }
 }
예제 #28
0
        private void btnMenu_Click(object sender, EventArgs e)
        {
            if (sidemenu.Width == 50)
            {
                richTextBox1.Visible = false;
                sidemenu.Visible     = false;
                logo2.Visible        = false;
                sidemenu.Width       = 260;
                PanelAnimator.ShowSync(sidemenu);
                LogoAnimator.ShowSync(logo);
            }
            else
            {
                richTextBox1.Visible = true;
                LogoAnimator.Hide(logo);
                Logo2Animator.ShowSync(logo2);
                sidemenu.Visible = false;
                sidemenu.Width   = 50;

                PanelAnimator.ShowSync(sidemenu);
            }
        }
예제 #29
0
        private void bunifuImageButton2_Click(object sender, EventArgs e)
        {
            if (panel2.Width == 58)
            {
                panel2.Width = 158;

                PanelAnimator.ShowSync(panel2);
                LogoAnimator.Show(lblmenu);
                PicLog.Width = 600;
                btnClSes.Hide();
                btnSesion.Show();
            }
            else
            {
                LogoAnimator.Hide(lblmenu);
                panel2.Width = 58;
                PanelAnimator.ShowSync(panel2);
                PicLog.Width = 500;
                btnClSes.Show();
                btnSesion.Hide();
            }
        }
예제 #30
0
 private void btnMenu_Click(object sender, EventArgs e)
 {
     if (menu.Width == 70)
     {
         menu.Visible     = false;
         txtTenNV.Visible = true;;
         menu.Width       = 246;
         menuChild.Width  = 228;
         iconUser.Width   = 81;
         iconUser.Height  = 81;
         Point coorIconUser = new Point(72, 7);
         iconUser.Location     = coorIconUser;
         panelContent.Width    = 1107;
         panelContent.Height   = 722;
         panelContent.Location = new Point(254, 36);
         btnMenu.Location      = coorMenuTmp;
         PanelAnimator.ShowSync(menu);
         logoAnimator.ShowSync(logo);
     }
     else
     {
         logoAnimator.Hide(logo);
         menu.Visible          = false;
         txtTenNV.Visible      = false;
         menu.Width            = 70;
         menuChild.Width       = 52;
         panelContent.Width    = 1286;
         panelContent.Height   = 722;
         panelContent.Location = new Point(75, 36);
         iconUser.Width        = 50;
         iconUser.Height       = 50;
         Point coorIconUser = new Point(1, 50);
         iconUser.Location = coorIconUser;
         Point coorIconMenu = new Point(22, 28);
         btnMenu.Location = coorIconMenu;
         PanelAnimator.ShowSync(menu);
     }
 }