Beispiel #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (!disposedValue)
     {
         if (disposing)
         {
             if (Utl != null)
             {
                 Utl.Dispose();
                 Utl = (Util)null;
             }
             if (TL != null)
             {
                 TL.Enabled = false;
                 TL.Dispose();
                 TL = null;
             }
         }
         try
         {
             ASCOM.Astrometry.SOFA.SOFA.FreeLibrary(SofaDllHandle);
         }
         catch (Exception ex)
         {
             //ProjectData.SetProjectError(ex);
             //ProjectData.ClearProjectError();
         }
     }
     disposedValue = true;
 }