예제 #1
0
파일: Form1.cs 프로젝트: maglighter/Benkyou
 public Form1()
 {
     InitializeComponent();
     testCollection = new TestCollection();
     currentUnit    = testCollection.Create();
     this.Text      = testCollection.currentUnitName;
     InitTest();
 }
예제 #2
0
 public TestManager(TestCollection list)
 {
     InitList(list);
     tableLayoutPanel1.Visible        = false;
     listBox1.Dock                    = DockStyle.Fill;
     переборToolStripMenuItem.Visible = false;
     выбратьToolStripMenuItem.Visible = false;
     textBox1.Visible                 = false;
 }
예제 #3
0
        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;
        }
예제 #4
0
 public TestManager(TestCollection list, string name)
 {
     InitList(list);
     this.button1.Text = name;
     this.Text         = name;
 }