private void EventListButton_Click(object sender, EventArgs e) { distance = Marker.Top - EventListButton.Top; checksize(); timer1.Start(); if (elcollapsed) { HomeButton.Enabled = false; EventListButton.Enabled = false; EventRegButton.Enabled = false; PrintButton.Enabled = false; EventListTimer.Start(); if (!hcollapsed) { HomeTimer.Start(); } if (!ercollapsed) { EventRegTimer.Start(); } if (!pcollapsed) { PrintTimer.Start(); } } }
private void EventRegTimer_Tick(object sender, EventArgs e) { if (ercollapsed) { EventReg.BringToFront(); EventReg.Width += 100; if (EventReg.Size == EventReg.MaximumSize) { EventRegTimer.Stop(); ercollapsed = false; HomeButton.Enabled = true; EventListButton.Enabled = true; EventRegButton.Enabled = true; PrintButton.Enabled = true; } } else { EventReg.SendToBack(); EventReg.Width -= 100; if (EventReg.Size == EventReg.MinimumSize) { EventRegTimer.Stop(); ercollapsed = true; HomeButton.Enabled = true; EventListButton.Enabled = true; EventRegButton.Enabled = true; PrintButton.Enabled = true; } } }