public StudentRecord() { InitializeComponent(); LabelUsername.Text = user.Username; LabelUserId.Text = user.Id.ToString(); // hide admin panel / content if (!isAdmin) { } //inits ws = new WebService.WebService(); dtFunc = new DTFunc(); //DataGridViewMediaLibary.DataSource = userLogic.getAllUsers(); //DataGridViewBookingHistory.DataSource = borrowLogic.getByUserForUserHistory(user.Id); //DataGridViewReservedHistory.DataSource = reservedLogic.getReservedHistory(user.Id); //DataGridViewMediaLibary.DataSource = ws.GetAllUsers(); DataGridViewBookingHistory.DataSource = ws.GetByUserForUserHistory(user.Id); DataGridViewReservedHistory.DataSource = ws.getReservedHistory(user.Id); }