protected override bool OnBubbleEvent(object sender, EventArgs args)
        {
            var handled = false;

            if (args is CommandEventArgs)
            {
                var commandEventArgs = args as CommandEventArgs;
                if (commandEventArgs.CommandName == UserControls.Phase4.HelpIcons.ExportToExcel.ExportString)
                {
                    ExportToExcel();
                    handled = true;
                }
            }
            if (args is GridViewCommandEventArgs)
            {
                var commandArgs = args as GridViewCommandEventArgs;
                if (commandArgs.CommandName.StartsWith("ShowReservations"))
                {
                    var vehicleId = int.Parse(commandArgs.CommandArgument.ToString());
                    List <ReservationMatchGridRow> data;
                    using (var dataAccess = new MatchDataAccess(null))
                    {
                        data = dataAccess.GetReservationMatches(vehicleId);
                    }
                    ucReservationMatchGrid.GridData = data;
                    upnlMultiview.Update();
                }
                handled = true;
            }
            return(handled);
        }
        private void RefreshGrid()
        {
            var mergedParameters = ucParameters.GetParameterDictionary();
            List <ReservationMatchGridRow> data;

            using (var dataAccess = new MatchDataAccess(mergedParameters))
            {
                lblLastUpdate.Text = LastUpdatedFromFleetNow.GetLastUpdatedDateTime(dataAccess);

                lblReservationUpdate.Text = dataAccess.GetLastGwdRequest();

                data = dataAccess.GetReservationMatches();
            }
            ucReservationMatchGrid.GridData = data;
            ucFleetMatchGrid.GridData       = null;
            ucExportToExcel.Visible         = true;
            pnlOverviewGrid.Visible         = true;
        }