Exemplo n.º 1
0
 void ReleaseDesignerOutlets()
 {
     if (LblAltitude != null)
     {
         LblAltitude.Dispose();
         LblAltitude = null;
     }
     if (LblCourse != null)
     {
         LblCourse.Dispose();
         LblCourse = null;
     }
     if (LblLatitude != null)
     {
         LblLatitude.Dispose();
         LblLatitude = null;
     }
     if (LblLongitude != null)
     {
         LblLongitude.Dispose();
         LblLongitude = null;
     }
     if (LblSpeed != null)
     {
         LblSpeed.Dispose();
         LblSpeed = null;
     }
 }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (checkIt != null)
            {
                checkIt.Dispose();
                checkIt = null;
            }

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

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

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

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

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

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

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

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