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