Ejemplo n.º 1
0
        public void RaiseShipDetected(ShipViewModel ship)
        {
            ShipDetectedHandler handler = this.ShipDetected;

            if (handler != null)
            {
                handler(ship, null);
            }
        }
Ejemplo n.º 2
0
        public ZoneViewModel()
        {
            ShipViewModel a = ShipViewModel.GetShip();
            ShipViewModel b = ShipViewModel.GetShip();

            b.TargetShip   = a;
            ShipCollection = new ObservableCollection <ShipViewModel>()
            {
                a, b
            };
        }
Ejemplo n.º 3
0
 public void OnBogeyDetected(ShipViewModel bogey)
 {
     int x = 0;
 }