Beispiel #1
0
 public static Lcdisplay Instance()
 {
     if (s_singleInstance == null)
     {
         s_singleInstance = new Lcdisplay();
     }
     return(s_singleInstance);
 }
Beispiel #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;
        }
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
     }
 }
Beispiel #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;
        }
Beispiel #8
0
        /// <summary>
        /// Instances this instance.
        /// </summary>
        /// <returns></returns>
        public static Lcdisplay Instance()
        {
            if (s_singleInstance == null)
                s_singleInstance = new Lcdisplay();

            return s_singleInstance;
        }