private void DashboardForm_Activated(object sender, EventArgs e) { subscriberBLL = new SubscriberBLL(); materialBLL = new MaterialBLL(); borrbll = new BorrowBLL(); comboMembers.SelectedIndex = 0; txtTotalMembers.Text = subscriberBLL.GetTotalCountSubscribers().ToString(); txtTotalMaterials.Text = materialBLL.GetTotalCountMaterials().ToString(); txtTotalBorrowings.Text = borrbll.GetTotalCountBorrowings().ToString(); }