Utiliser une variable d'une autre fonction
Bonjour,
J'ai beau chercher, je ne trouve pas comment me servir d'une variable qui est initialisé dans un fct A dans un fct B
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
public void button2_Click(object sender, EventArgs e) //Bouton convertir
{
foreach (String file in listBox1.Items)
{
if (pathSAUV=="")
{}
}
}
public void button3_Click(object sender, System.EventArgs e) //Bouton parcourir pour choisir dossier destination
{
folderBrowserDialog1.ShowDialog();
textBox4.Text = folderBrowserDialog1.SelectedPath;
string pathSAUV = textBox4.Text;
} |
Merci de votre aide