Exemple #1
0
 private void HomeTimer_Tick(object sender, EventArgs e)
 {
     if (hcollapsed)
     {
         HomeScreen.BringToFront();
         HomeScreen.Width += 100;
         if (HomeScreen.Size == HomeScreen.MaximumSize)
         {
             HomeTimer.Stop();
             hcollapsed              = false;
             HomeButton.Enabled      = true;
             EventListButton.Enabled = true;
             EventRegButton.Enabled  = true;
             PrintButton.Enabled     = true;
         }
     }
     else
     {
         HomeScreen.SendToBack();
         HomeScreen.Width -= 100;
         if (HomeScreen.Size == HomeScreen.MinimumSize)
         {
             HomeTimer.Stop();
             hcollapsed              = true;
             HomeButton.Enabled      = true;
             EventListButton.Enabled = true;
             EventRegButton.Enabled  = true;
             PrintButton.Enabled     = true;
         }
     }
 }