예제 #1
0
 public static TestCenter GetInstance()
 {
     if (m_instance == null)
     {
         return(m_instance = new TestCenter());
     }
     else
     {
         return(m_instance);
     }
 }
예제 #2
0
 public static TestCenter GetInstance()
 {
     if (m_instance == null)
         return (m_instance = new TestCenter());
     else
         return m_instance;
 }
예제 #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();
        }