Esempio n. 1
0
 private void ChangeTarget(MapObject mo)
 {
     if (mo != null && mo.type == MapObject.MapObjectType.VESSEL)
     {
         mSatellite = RTCore.Instance.Satellites[mo.vessel];
     }
     else
     {
         mSatellite = null;
     }
     if (mConfig != null)
     {
         mConfig.Hide();
     }
     if (mSatellite != null)
     {
         mConfig = new SatelliteConfigWindow(null, new Rect(0, 0, 0, 0),
                                             WindowAlign.BottomRight, mSatellite);
     }
 }
 private void ChangeTarget(MapObject mo)
 {
     if (mo != null && mo.type == MapObject.MapObjectType.VESSEL) {
         mSatellite = RTCore.Instance.Satellites[mo.vessel];
     } else {
         mSatellite = null;
     }
     if (mConfig != null) {
         mConfig.Hide();
     }
     if (mSatellite != null) {
         mConfig = new SatelliteConfigWindow(null, new Rect(0,0,0,0),
             WindowAlign.BottomRight, mSatellite);
     }
 }