Beispiel #1
0
 //create object
 private void button1_Click(object sender, System.EventArgs e)
 {
     ObjectForm obj_form = new ObjectForm(this);
     obj_form.Show();
 }
Beispiel #2
0
 private void button5_Click(object sender, EventArgs e)
 {
     Object o = (Object)listBox1.SelectedItem;
     Console.WriteLine(o);
     Form obj_form = new ObjectForm(this, o);
     obj_form.Show();
 }