private void VehicleSelectedAction(VehicleSelected obj) { if (obj.Vehicle == null) { return; } VehicleSelected = obj.Vehicle; }
private void SelectedVehicleChanged(object sender, SelectionChangedEventArgs e) { if (VehicleSelected != null) { VehicleSelected.Invoke(sender, e); } }
private void VehicleSelectedAction(VehicleSelected obj) { if (obj.Vehicle == null) { return; } foreach (var entity in EntitysItemsSource) { if (entity.Id == obj.Vehicle.ID) { SelectedEntity = entity; //Application.Current.Dispatcher.BeginInvoke(DispatcherPriority.Normal, new Action(() => SelectedEntity.Selected = true)); break; } } }
private void VehicleSelectedFunction(VehicleSelected obj) { if (obj.MouseClick == MouseClickEnum.Right) { MarginView = obj.Thickness; VisibilityView = Visibility.Visible; VehicleSelected = obj.Vehicle; } else { VisibilityView = Visibility.Hidden; if (obj.MouseClick == MouseClickEnum.Left) { // VehicleSelected = obj.Vehicle; // IsJoystickChecked = false; } } }
private void VehicleSelectedAction(VehicleSelected obj) { //if (obj.Vehicle == null) return; //GuiQuadVehicleSelected = obj.Vehicle as GuiQuadVehicle; //if (GuiQuadVehicleSelected != null && GuiQuadVehicleSelected != OldGuiQuadVehicleSelected) //{ // if (OldGuiQuadVehicleSelected != null && OldGuiQuadVehicleSelected.VideoBase != null) // { // OldGuiQuadVehicleSelected.VideoBase.StopVideo(); // OldGuiQuadVehicleSelected.VideoBase = null; // } // GuiQuadVehicleSelected.VideoBase = new VideoLanGst("", 5000, (uint)panel.Handle, // ConfigurationManager.AppSettings["VideoDirectory"]); // // GuiQuadVehicleSelected.VideoBase.StartRecord("Video_Quad" + guiVehicle.ID + "_"); // GuiQuadVehicleSelected.VideoBase.StartVideo(); // OldGuiQuadVehicleSelected = GuiQuadVehicleSelected; //} }