Ejemplo n.º 1
0
        public static TrainControllerApp GetInstance()
        {
            if (mInstance == null)
            {
                mInstance = new TrainControllerApp();
            }

            return(mInstance);
        }
Ejemplo n.º 2
0
        //// colors for the time table view
        //public Colour m_colorCanceled;
        //public Colour m_colorReady;
        //public Colour m_colorArrived;
        //public Colour m_colorDerailed;
        //public Colour m_colorWaiting;
        //public Colour m_colorRunning;
        //public Colour m_colorStopped;


        private TrainControllerApp()
        {
            if (mInstance != null)
            {
                throw new Exception("TrainController constructor can be called only once");
            }

            mInstance = this;

            // TODO Handle better this part of code
            mTimeSliceCount = 0;
            mTimeSlice      = 10;
            mIgnoreTimer    = true;

#if DEBUG
            m_oldSimulations[m_nOldSimulations++] = @"..\..\Padova2014.zip";
#endif

            OnInit();
        }