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));
     }
 }
Beispiel #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));
            }
        }