예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string Nom    = TextNom.Text;
            string adress = TextAdress.Text;
            string ville  = Listvilles.GetItemText(Listvilles.SelectedItem);
            string buttex = " acune sex ";
            bool   butt   = radioButton1.Checked;
            bool   butt1  = radioButton2.Checked;

            if (butt == true)
            {
                buttex = radioButton1.Text;
            }
            else if (butt1 == true)
            {
                buttex = radioButton2.Text;
            }

            MessageBox.Show("Nom : " + Nom + "\n" + "adress : " + adress + "\n" + "sex : " + buttex);
        }
예제 #2
0
        private void Listvilles_SelectedIndexChanged(object sender, EventArgs e)
        {
            string val = Listvilles.GetItemText(Listvilles.SelectedItem);

            MessageBox.Show(val);
        }