private void btnSidePanel_Click(object sender, EventArgs e) { if (!menuExpanded) { menuExpanded = true; pnlUserMenu.Visible = false; pnlUserMenu.Width = 275; AnimatedSideOn.ShowSync(pnlUserMenu); //animate content 1 castelMIMIContent1.Visible = false; castelMIMIContent1.Left += 221; castelMIMIContent1.Width -= 221; AnimatedContentOnOffSide.ShowSync(castelMIMIContent1); } else { menuExpanded = false; pnlUserMenu.Visible = false; pnlUserMenu.Width = 50; AnimatedSideOff.ShowSync(pnlUserMenu); //animate content 1 castelMIMIContent1.Visible = false; castelMIMIContent1.Left -= 221; castelMIMIContent1.Width += 221; AnimatedContentOnOffSide.ShowSync(castelMIMIContent1); } }
private void btnMenu_Click(object sender, EventArgs e) { VSReactive <int> .SetState("menu", int.Parse(((Control)sender).Tag.ToString())); BtnsContent.Visible = false; AnimatedContentOnOffSide.ShowSync(BtnsContent); ResetColorButtons(); int btn = int.Parse(((Control)sender).Tag.ToString()); switch (btn) { case 0: OnClick(btnCastelMIMI); break; case 1: OnClick(btnRestaurant); break; case 2: OnClick(btnWine); break; case 3: OnClick(btnResort); break; case 4: OnClick(btnEvents); break; case 5: OnClick(btnGallery); break; case 6: OnClick(btnProgram); break; case 7: OnClick(btnContact); break; case 8: OnClick(btnAboutUS); break; } }