private void LoadRequestDataToDataGridView()
        {
            RequestsDataTableCreator dtCreator = new RequestsDataTableCreator();
            List <Request>           requests  = new List <Request>();

            switch ((RequestsCategory)_view.SelectedActiveData)
            {
            case RequestsCategory.Active:
                requests = _dataBase.GetAll().Where(p => !p.isArchivized).ToList();
                break;

            case RequestsCategory.Archivized:
                requests = _dataBase.GetAll().Where(p => p.isArchivized).ToList();
                break;

            default:
                requests = _dataBase.GetAll();
                break;
            }

            dtCreator.UpdateRows(requests);

            DataTable currentDataTable = dtCreator.GetCurrentDataTable();

            _view.DataGridViewSource = currentDataTable;
            _view.DataGridView.Columns["ID"].Visible = false;
        }
        private void LoadRequestDataToDataGridView()
        {
            RequestsDataTableCreator dtCreator = new RequestsDataTableCreator();
            List<Request> requests = new List<Request>();

            switch ((RequestsCategory) _view.SelectedActiveData)
            {
                case RequestsCategory.Active:
                    requests = _dataBase.GetAll().Where(p => !p.isArchivized).ToList();
                    break;
                case RequestsCategory.Archivized:
                    requests = _dataBase.GetAll().Where(p => p.isArchivized).ToList();
                    break;
                default:
                    requests = _dataBase.GetAll();
                    break;
            }

            dtCreator.UpdateRows(requests);

            DataTable currentDataTable = dtCreator.GetCurrentDataTable();
            _view.DataGridViewSource = currentDataTable;
            _view.DataGridView.Columns["ID"].Visible = false;
        }