private void UpdateGroups(object sender, EventArgs e)
        {
            //TODO: Move to DisplayController
            DataTable dt = new DataTable();

            DisplayControl displayOperation = new DisplayControl();
            UserControl    displayGroups    = new UserControl();

            if (_userInfo.AccessGroup == 1)
            {
                dt = displayGroups.getGroups();
            }
            else
            {
                dt = displayOperation.GetGroups(_userInfo);
            }



            if (dt.Rows.Count > 0)
            {
                ddlGroups.DataSource    = dt;
                ddlGroups.DisplayMember = "GroupName";
                ddlGroups.ValueMember   = "ID";
            }
        }
        private DataTable ViewSoftwareView()
        {
            DataTable      dt          = new DataTable();
            DisplayControl displayData = new DisplayControl();

            dt = displayData.GetSoftwareView(Convert.ToInt32(ddlGroups.SelectedValue.ToString()), _userInfo.User_ID);

            if (dt.Rows.Count == 0)
            {
                MessageBox.Show("There is no software for your group, please contact Administrator", "Error!",
                                MessageBoxButtons.OK);
            }

            return(dt);
        }
        private DataTable ShowAllSoftware()
        {
            DisplayControl display = new DisplayControl();

            return(display.GetAllSoftware());
        }