Ejemplo n.º 1
0
        // Display AI chooser.
        private void mnuChooseAI_Click(object sender, EventArgs e)
        {
            using (var aier = new frmAIChooser())
            {
                aier.AI1Type = this.ai1Type;
                aier.AI2Type = this.ai2Type;

                if (aier.ShowDialog() == DialogResult.OK)
                {
                    if (aier.AI1Type != this.ai1Type)
                    {
                        this.ai1Type = aier.AI1Type;
                    }
                    if (aier.AI2Type != this.ai2Type)
                    {
                        this.ai2Type = aier.AI2Type;
                    }
                }
            }
        }
Ejemplo n.º 2
0
        // Display AI chooser.
        private void mnuChooseAI_Click(object sender, EventArgs e)
        {
            using (var aier = new frmAIChooser())
            {
                aier.AI1Type = this.ai1Type;
                aier.AI2Type = this.ai2Type;

                if (aier.ShowDialog() == DialogResult.OK)
                {
                    if (aier.AI1Type != this.ai1Type)
                        this.ai1Type = aier.AI1Type;
                    if (aier.AI2Type != this.ai2Type)
                        this.ai2Type = aier.AI2Type;
                }
            }
        }