private void UnitTestManagerForm_Load(object sender, System.EventArgs e) { if ( this.CurrentUnitTestSession.UnitTestForms.Count > 0 ) { if ( this.CurrentUnitTestSession.UnitTestForms.ContainsKey("uti_" + this.CurrentForm.Name) ) { // load tests TestCollection tests = this.CurrentUnitTestSession.UnitTestForms["uti_" + this.CurrentForm.Name].Tests; this.FormTests = tests; for (int i=0;i<this.FormTests.Count;i++) { Test t = FormTests.GetByIndex(i); ListViewItem lv = new ListViewItem(); string testType = t.TestTypeName; //string errorString = (string)this.GetOnErrorCollection()[t.OnErrorValue]; //string successString = (string)this.GetOnSuccessCollection()[t.OnSuccessValue]; lv.Text = t.Name; lv.SubItems.Add(testType); // TODO: Populate lstTestManager.Items.Add(lv); } } } }