예제 #1
0
 private void BookTimer_Tick(object sender, EventArgs e)
 {
     if (isCollapsed2)
     {
         changePassPanel.Height = changePassPanel.Height - 365;
         if (changePassPanel.Height >= PanelHeight)
         {
             passwordTimer.Stop();
             isCollapsed2 = false;
             this.Refresh();
         }
     }
     else if (isCollapsed1)
     {
         manageUserPanel.Width = manageUserPanel.Width - 825;
         if (manageUserPanel.Width >= PanelWidth1)
         {
             userManageTimer.Stop();
             isCollapsed1 = false;
             this.Refresh();
         }
     }
     else
     {
         BookTimer.Stop();
     }
 }
예제 #2
0
 private void bookPanelBtn_Click(object sender, EventArgs e)
 {
     BookTimer.Start();
 }