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 SinfoBtn_Click(object sender, EventArgs e) { SinfoTimer.Start(); DataTable dtab = lib.search(4, this.userid); borrowedBookViewS.DataSource = dtab; }