public override void Hide() { if (mSatelliteFragment != null) { mSatelliteFragment.Dispose(); mSatelliteFragment = null; } if (RTCore.Instance != null) { RTCore.Instance.Satellites.OnUnregister -= Refresh; } base.Hide(); }
public override void Show() { RTCore.Instance.Satellites.OnUnregister += Refresh; mSatelliteFragment = mSatelliteFragment ?? new SatelliteFragment(mSetSatellite); base.Show(); }