Exemple #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            Form2bis a = new Form2bis();

            a.setLB(this.listBox2);
            a.Activate();
            a.Show();
        }
Exemple #2
0
        private void listBox2_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            int index = this.listBox2.IndexFromPoint(e.Location);

            if (index != System.Windows.Forms.ListBox.NoMatches)
            {
                Light elementToModif = (Light)this.listBox2.Items[index];

                DirectionalLight elementToModifCast = (DirectionalLight)elementToModif;
                Form2bis         recModifier        = new Form2bis(elementToModifCast);
                recModifier.setLB(this.listBox2);
                recModifier.Activate();
                recModifier.Show();
            }
        }