Exemple #1
0
 void ReleaseDesignerOutlets()
 {
     if (AccountLatitude != null)
     {
         AccountLatitude.Dispose();
         AccountLatitude = null;
     }
     if (AccountLongitude != null)
     {
         AccountLongitude.Dispose();
         AccountLongitude = null;
     }
     if (AccountName != null)
     {
         AccountName.Dispose();
         AccountName = null;
     }
     if (CurrentLatitude != null)
     {
         CurrentLatitude.Dispose();
         CurrentLatitude = null;
     }
     if (CurrentLongitude != null)
     {
         CurrentLongitude.Dispose();
         CurrentLongitude = null;
     }
     if (mapView != null)
     {
         mapView.Dispose();
         mapView = null;
     }
 }
Exemple #2
0
        void ReleaseDesignerOutlets()
        {
            if (ClosestAirport != null)
            {
                ClosestAirport.Dispose();
                ClosestAirport = null;
            }

            if (ClosestHospital != null)
            {
                ClosestHospital.Dispose();
                ClosestHospital = null;
            }

            if (ClosestMuseum != null)
            {
                ClosestMuseum.Dispose();
                ClosestMuseum = null;
            }

            if (ClosestUniversity != null)
            {
                ClosestUniversity.Dispose();
                ClosestUniversity = null;
            }

            if (CurrentLatitude != null)
            {
                CurrentLatitude.Dispose();
                CurrentLatitude = null;
            }

            if (CurrentLongitude != null)
            {
                CurrentLongitude.Dispose();
                CurrentLongitude = null;
            }

            if (DistanceFromAirport != null)
            {
                DistanceFromAirport.Dispose();
                DistanceFromAirport = null;
            }

            if (DistanceFromHospital != null)
            {
                DistanceFromHospital.Dispose();
                DistanceFromHospital = null;
            }

            if (DistanceFromMuseum != null)
            {
                DistanceFromMuseum.Dispose();
                DistanceFromMuseum = null;
            }

            if (DistanceFromUniversity != null)
            {
                DistanceFromUniversity.Dispose();
                DistanceFromUniversity = null;
            }

            if (RunButton != null)
            {
                RunButton.Dispose();
                RunButton = null;
            }

            if (LoadingGif != null)
            {
                LoadingGif.Dispose();
                LoadingGif = null;
            }
        }