private void ReportsClickedHandler(Base sender, ClickedEventArgs e) { //if (sender == btn_browse_report) // ComputerReportsController.ShowTrafficCitationList(); //else if(sender == btn_arrest_report) //ComputerReportsController.ShowTrafficCitationCreate(null); if (sender == btn_browse_report) { ComputerReportsController.ShowArrestReportList(); } else if (sender == btn_arrest_report) { ComputerReportsController.ShowArrestReportCreate(null, null); } }
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; } } }
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; } } }
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; } }
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; } } }
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; } } }