Пример #1
0
        private void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                // cleanup managed resources (none to cleanup for now)
            }

            // Clean up the tracelogger and util objects
            if (m_mount != null)
            {
                SharedResources.DisconnectMount();
                m_mount  = null;
                m_camera = null;
            }

            SharedResources.PutTraceLogger();
            tl = null;

            utilities.Dispose();
            utilities = null;
            astroUtilities.Dispose();
            astroUtilities = null;
            transform.Dispose();
            transform = null;

            disposed = true;
        }
Пример #2
0
 public void Dispose()
 {
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
     wisedome.Dispose();
     wisedome = null;
 }
Пример #3
0
 public void Dispose()
 {
     // Clean up the tracelogger and util objects
     trace = false;
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
 }
Пример #4
0
 public void Dispose()
 {
     tl.Enabled = false;
     tl.Dispose();
     tl = null;
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
 }
Пример #5
0
        public void Dispose()
        {
            util.Dispose();
            util = null;

            astroUtils.Dispose();
            astroUtils = null;

            wisetele.Dispose();
        }
Пример #6
0
 public void Dispose()
 {
     // Clean up the tracelogger and util objects
     //tl.Enabled = false;
     //tl.Dispose();
     //tl = null;
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
 }
Пример #7
0
 public void Dispose()
 {
     // Clean up the tracelogger and util objects
     tl.Enabled = false;
     tl.Dispose();
     tl = null;
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
     serialPort.Close();
 }
Пример #8
0
 public void Dispose()
 {
     // Clean up the logger and util objects
     Log.Information("Terminating GotoStar driver");
     Log.CloseAndFlush();
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
     gotoStar?.ClosePort();
     gotoStar?.Dispose();
 }
Пример #9
0
 public void Dispose()
 {
     // Clean up the tracelogger and util objects
     tl.Enabled = false;
     tl.Dispose();
     tl = null;
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
     fMounter.Disconnect();
 }
Пример #10
0
 public void Dispose()
 {
     // Clean up the trace logger and util objects
     Switches.Save();
     if (_serial != null)
     {
         _serial.Connected = false;
     }
     tl.Enabled = false;
     tl.Dispose();
     tl = null;
     utilities.Dispose();
     utilities = null;
     astroUtilities.Dispose();
     astroUtilities = null;
 }
Пример #11
0
 public void Dispose()
 {
     if (MyDriverType == 0)
     {
         MySSFocuser.Dispose();
     }
     else
     {
         // Clean up the tracelogger and util objects
         tl.Enabled = false;
         tl.Dispose();
         tl = null;
         utilities.Dispose();
         utilities = null;
         astroUtilities.Dispose();
         astroUtilities = null;
     }
 }
Пример #12
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_Util != null)
         {
             _Util.Dispose();
             _Util = null;
         }
         if (_Transform != null)
         {
             _Transform.Dispose();
             _Transform = null;
         }
         if (_AstroUtils != null)
         {
             _AstroUtils.Dispose();
             _AstroUtils = null;
         }
     }
 }
Пример #13
0
        public void Dispose()
        {
            // Clean up the tracelogger and util objects
            tl.Enabled = false;
            tl.Dispose();
            tl = null;
            utilities.Dispose();
            utilities = null;
            astroUtilities.Dispose();
            astroUtilities = null;

            //**** added
            if (serialPort == null)
            {
                return;
            }
            serialPort.Connected = false;
            serialPort.Dispose();
            serialPort = null;
            //**** end addt
        }
Пример #14
0
 public void Dispose()
 {
     novas31.Dispose();
     astroutils.Dispose();
     ascomutils.Dispose();
 }