private void FbookTimer_Tick(object sender, EventArgs e) { if (isCollapsed2) { facultyPassPanel.Height = facultyPassPanel.Height - 400; if (facultyPassPanel.Height >= PanelHeight) { FpassTime.Stop(); isCollapsed2 = false; this.Refresh(); } } else if (isCollapsed1) { infoPanelF.Width = infoPanelF.Width - 825; if (infoPanelF.Width >= PanelWidth1) { FinfoBoxTimer.Stop(); isCollapsed1 = false; this.Refresh(); } } else { FbookTimer.Stop(); } }
private void FinfoBtn_Click(object sender, EventArgs e) { FinfoBoxTimer.Start(); DataTable dtab = lib.search(4, this.userid); borrowedBookViewF.DataSource = dtab; borrowedBookViewF.Columns["bookid"].Visible = false; }