示例#1
0
文件: Form1.cs 项目: tiregram/E5_ima
        private void button4_Click(object sender, EventArgs e)
        {
            Form2bis a = new Form2bis();

            a.setLB(this.listBox2);
            a.Activate();
            a.Show();
        }
示例#2
0
文件: Form1.cs 项目: tiregram/E5_ima
        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();
            }
        }