private void SbookTimer_Tick(object sender, EventArgs e) { if (isCollapsed2) { studentPassPanel.Height = studentPassPanel.Height - 400; if (studentPassPanel.Height >= PanelHeight) { SpassTimer.Stop(); isCollapsed2 = false; this.Refresh(); } } else if (isCollapsed1) { infoPanelS.Width = infoPanelS.Width - 825; if (infoPanelS.Width >= PanelWidth1) { SinfoTimer.Stop(); isCollapsed1 = false; this.Refresh(); } } else { SbookTimer.Stop(); } }
private void studentChangePassBtn_Click(object sender, EventArgs e) { SpassTimer.Start(); }