private void Button_Contact_Click(object sender, EventArgs e) { if (SidePanel.Visible == true) { TransitionSideBar.HideSync(SidePanel); TransitionSideBar.ShowSync(SidePanel); SidePanel.Height = Button_Contact.Height; SidePanel.Top = Button_Contact.Top; } }
private void Button_catalog_Click(object sender, EventArgs e) { park1.BringToFront(); if (SidePanel.Visible == true) { TransitionSideBar.HideSync(SidePanel); TransitionSideBar.ShowSync(SidePanel); SidePanel.Height = Button_catalog.Height; SidePanel.Top = Button_catalog.Top; } }
private void BHome_Click(object sender, EventArgs e) { section_home1.BringToFront(); if (SidePanel.Visible == true) { TransitionSideBar.HideSync(SidePanel); TransitionSideBar.ShowSync(SidePanel); SidePanel.Height = BHome.Height; SidePanel.Top = BHome.Top; } }