예제 #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     LightChooseType clt = new LightChooseType();
     if (clt.ShowDialog() == DialogResult.OK) {
         this.listObjects.Items.Add(this.CreateInstance(clt.SelectedType));
     }
 }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            LightChooseType clt = new LightChooseType();

            if (clt.ShowDialog() == DialogResult.OK)
            {
                this.listObjects.Items.Add(this.CreateInstance(clt.SelectedType));
            }
        }