Exemplo n.º 1
0
 public static Lcdisplay Instance()
 {
     if (s_singleInstance == null)
     {
         s_singleInstance = new Lcdisplay();
     }
     return(s_singleInstance);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Releases unmanaged and - optionally - managed resources
        /// </summary>
        /// <param name="isDisposing">
        /// <c>true</c> to release both managed and unmanaged resources;
        /// <c>false</c> to release only unmanaged resources.
        /// </param>
        private void Dispose(bool isDisposing)
        {
            if (!m_disposed)
            {
                if (isDisposing || s_singleInstance != null)
                {
                    LCDInterface.Close();
                }

                s_singleInstance = null;
            }
            m_disposed = true;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Starts the LCD display.
 /// </summary>
 private static void Start()
 {
     try
     {
         s_lcd = Lcdisplay.Instance();
         s_lcd.SwitchState(LcdState.SplashScreen);
         s_running = true;
     }
     catch (Exception ex)
     {
         EveClient.Trace(ex.Message);
         s_startupError = true;
         s_running      = false;
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// Stop the LCD display.
 /// </summary>
 private static void Stop()
 {
     try
     {
         s_lcd.Dispose();
     }
     catch (Exception ex)
     {
         EveClient.Trace(ex.Message);
     }
     finally
     {
         s_lcd     = null;
         s_running = false;
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// Starts the LCD display.
 /// </summary>
 private static void Start()
 {
     try
     {
         s_lcd = Lcdisplay.Instance();
         s_lcd.SwitchState(LcdState.SplashScreen);
         s_running = true;
     }
     catch(Exception ex)
     {
         EveClient.Trace(ex.Message);
         s_startupError = true;
         s_running = false;
     }
 }
Exemplo n.º 6
0
 /// <summary>
 /// Stop the LCD display.
 /// </summary>
 private static void Stop()
 {
     try
     {
         s_lcd.Dispose();
     }
     catch (Exception ex)
     {
         EveClient.Trace(ex.Message);
     }
     finally
     {
         s_lcd = null;
         s_running = false;
     }
 }
Exemplo n.º 7
0
        /// <summary>
        /// Releases unmanaged and - optionally - managed resources
        /// </summary>
        /// <param name="isDisposing">
        /// <c>true</c> to release both managed and unmanaged resources;
        /// <c>false</c> to release only unmanaged resources.
        /// </param>
        private void Dispose(bool isDisposing)
        {
            if (!m_disposed)
            {
                if (isDisposing || s_singleInstance != null)
                    LCDInterface.Close();

                s_singleInstance = null;
            }
            m_disposed = true;
        }
Exemplo n.º 8
0
        /// <summary>
        /// Instances this instance.
        /// </summary>
        /// <returns></returns>
        public static Lcdisplay Instance()
        {
            if (s_singleInstance == null)
                s_singleInstance = new Lcdisplay();

            return s_singleInstance;
        }