示例#1
0
 private void BackButton4_Click(object sender, EventArgs e)
 {
     ReservationsPressedPanel.Hide();
     MenuButtonPanel.Show();
     viewReservationsControl1.Hide();
     manageReservationsControl1.Hide();
 }
示例#2
0
 private void BackButton5_Click(object sender, EventArgs e)
 {
     ProfilePressedPanel.Hide();
     MenuButtonPanel.Show();
     viewProfileControl1.Hide();
     editProfileControl1.Hide();
 }
示例#3
0
 private void TablesButton2_Click(object sender, EventArgs e)
 {
     TablesPressedPanel.Hide();
     MenuButtonPanel.Show();
     addTablesControl1.Hide();
     editTablesControl1.Hide();
 }
示例#4
0
 private void MenuButton_Click(object sender, EventArgs e)
 {
     if (MenuPanel.Visible)
     {
         MenuPanel.Hide();
         MenuButtonPanel.Show();
     }
     else
     {
         MenuPanel.Show();
         MenuButtonPanel.Hide();
     }
 }
示例#5
0
 private void ProfileButton_Click(object sender, EventArgs e)
 {
     if (ProfilePressedPanel.Visible)
     {
         ProfilePressedPanel.Hide();
         MenuButtonPanel.Show();
     }
     else
     {
         ProfilePressedPanel.Show();
         MenuButtonPanel.Hide();
     }
 }
示例#6
0
 private void ReservationsButton_Click(object sender, EventArgs e)
 {
     if (ReservationsPressedPanel.Visible)
     {
         ReservationsPressedPanel.Hide();
         MenuButtonPanel.Show();
     }
     else
     {
         ReservationsPressedPanel.Show();
         MenuButtonPanel.Hide();
     }
 }
示例#7
0
 private void TablesButton_Click(object sender, EventArgs e)
 {
     if (TablesPressedPanel.Visible)
     {
         TablesPressedPanel.Hide();
         MenuButtonPanel.Show();
     }
     else
     {
         TablesPressedPanel.Show();
         MenuButtonPanel.Hide();
     }
 }
示例#8
0
 public static void ClickMenuButton(MenuButtonPanel sender)
 {
     if (lastMenuItem == null)
     {
         lastMenuItem = sender;
     }
     else if (lastMenuItem != sender)
     {
         lastMenuItem.ShowDefaultImage(null, null);
         lastMenuItem.IsDown = false;
         lastMenuItem        = sender;
     }
 }
示例#9
0
 private void BackButton7_Click(object sender, EventArgs e)
 {
     menuValue = "";
     MenuButtonPanel.Show();
     MenuPanel.Hide();
 }