public Form1() { InitializeComponent(); testCollection = new TestCollection(); currentUnit = testCollection.Create(); this.Text = testCollection.currentUnitName; InitTest(); }
public TestManager(TestCollection list) { InitList(list); tableLayoutPanel1.Visible = false; listBox1.Dock = DockStyle.Fill; переборToolStripMenuItem.Visible = false; выбратьToolStripMenuItem.Visible = false; textBox1.Visible = false; }
private void InitList(TestCollection list) { InitializeComponent(); this.list = list; this.selectedItem = null; foreach (string item in list) { this.listBox1.Items.Add(item); } //if (listBox1.Items.Count > 0) // listBox1.se = 0; }
public TestManager(TestCollection list, string name) { InitList(list); this.button1.Text = name; this.Text = name; }