コード例 #1
0
        private void PedViewQuickActionSelected(object sender, ComputerPedView.QuickActions action)
        {
            switch (action)
            {
            case ComputerPedView.QuickActions.CREATE_ARREST_REPORT:
            {
                ComputerReportsController.ShowArrestReportCreate(DetailedEntity.Entity, PedCreateArrestReportActions);
                return;
            }

            case ComputerPedView.QuickActions.CREATE_TRAFFIC_CITATION:
            {
                ComputerReportsController.ShowTrafficCitationCreate(Globals.PendingTrafficCitation, DetailedEntity.Entity, PedCreateTrafficCitationActions);
                return;
            }
            }
        }
コード例 #2
0
        private void OnQuickAction(object sender, QuickActions action)
        {
            switch (action)
            {
            case QuickActions.CREATE_TRAFFIC_CITATION:
            {
                ComputerReportsController.ShowTrafficCitationCreate(null, DetailedEntity.Entity);
                return;
            }

            case QuickActions.CREATE_ARREST_REPORT:
            {
                ComputerReportsController.ShowArrestReportCreate(DetailedEntity.Entity, null);
                return;
            }
            }
        }
コード例 #3
0
        private void OnQuickAction(object sender, QuickActions action)
        {
            switch (action)
            {
            case QuickActions.BLIP_VEHICLE:
                Function.LogDebug("ActionSelected Blip Vehicle");
                ComputerVehicleController.BlipVehicle(Vehicle, System.Drawing.Color.Yellow);
                break;

            case QuickActions.CREATE_TRAFFIC_CITATION:
                ComputerReportsController.ShowTrafficCitationCreate(null, DetailedEntity.Entity);
                break;

            case QuickActions.CREATE_ARREST_REPORT_FOR_DRIVER:
                ComputerReportsController.ShowArrestReportCreate(DetailedEntity.Entity, null);
                break;
            }
        }
コード例 #4
0
        private void VehicleViewQuickActionSelected(object sender, ComputerVehicleDetails.QuickActions action)
        {
            switch (action)
            {
            case ComputerVehicleDetails.QuickActions.BLIP_VEHICLE:
            {
                ComputerVehicleController.BlipVehicle(DetailedEntity.Entity.Vehicle, System.Drawing.Color.Yellow);
                return;
            }

            case ComputerVehicleDetails.QuickActions.CREATE_TRAFFIC_CITATION:
            {
                ComputerReportsController.ShowTrafficCitationCreate(Globals.PendingTrafficCitation, DetailedEntity.Entity, PedCreateTrafficCitationActions);
                return;
            }

            case ComputerVehicleDetails.QuickActions.CREATE_ARREST_REPORT_FOR_DRIVER:
            {
                ComputerReportsController.ShowArrestReportCreate(DetailedEntity.Entity, PedCreateArrestReportActions);
                return;
            }
            }
        }
コード例 #5
0
        private void ActionComboBoxItemSelected(Base sender, ItemSelectedEventArgs arguments)
        {
            var action = (QuickActions)arguments.SelectedItem.UserData;

            if (OnQuickActionSelected != null)
            {
                OnQuickActionSelected(this, action);
                return;
            }
            switch (action)
            {
            case QuickActions.CREATE_ARREST_REPORT:
            {
                ComputerReportsController.ShowArrestReportCreate(this.Entity, null);
                return;
            }

            case QuickActions.CREATE_TRAFFIC_CITATION:
            {
                ComputerReportsController.ShowTrafficCitationCreate(null, this.Entity);
                return;
            }
            }
        }