Esempio n. 1
0
 public static TestCenter GetInstance()
 {
     if (m_instance == null)
     {
         return(m_instance = new TestCenter());
     }
     else
     {
         return(m_instance);
     }
 }
Esempio n. 2
0
 public static TestCenter GetInstance()
 {
     if (m_instance == null)
         return (m_instance = new TestCenter());
     else
         return m_instance;
 }
Esempio n. 3
0
        private void MainForm_Load(object sender, System.EventArgs e)
        {
            //Register log event handler
            TestCenter.Logger.LogEnterred +=
                new TestLogger.LogEventHandler(Logger_LogEnterred);

            //Grab the center
            m_testcenter = TestCenter.GetInstance();

            //Init the image list
            lstMessages.SmallImageList = new ImageList();
            lstMessages.SmallImageList.Images.Add(new Bitmap("error.bmp"));
            lstMessages.SmallImageList.Images.Add(new Bitmap("info.bmp"));
            lstMessages.SmallImageList.Images.Add(new Bitmap("warning.bmp"));

            UpdateStatus();
        }