Ejemplo n.º 1
0
 private void VehicleSelectedAction(VehicleSelected obj)
 {
     if (obj.Vehicle == null)
     {
         return;
     }
     VehicleSelected = obj.Vehicle;
 }
Ejemplo n.º 2
0
 private void SelectedVehicleChanged(object sender,
                                     SelectionChangedEventArgs e)
 {
     if (VehicleSelected != null)
     {
         VehicleSelected.Invoke(sender, e);
     }
 }
Ejemplo n.º 3
0
 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;
         }
     }
 }
Ejemplo n.º 4
0
 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;
         }
     }
 }
Ejemplo n.º 5
0
        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;
            //}
        }