internal static int toInt(ACTION_SI_DUPPLIQUE action) { switch (action) { case ACTION_SI_DUPPLIQUE.REMPLACER_ANCIEN: return(0); case ACTION_SI_DUPPLIQUE.IGNORER_NOUVEAU: return(1); default: return(2); } }
private void onClickButtonOK(object sender, EventArgs e) { sousrepertoires = checkBoxSousRepertoires.Checked; tagrepertoire = checkBoxTagRepertoire.Checked; etiquettes = textBoxEtiquettes.Text; repertoire = textBoxRepertoire.Text; if (radioButtonIgnorerNouveau.Checked) { actionSiDupplique = ACTION_SI_DUPPLIQUE.IGNORER_NOUVEAU; } else if (radioButtonAjouter.Checked) { actionSiDupplique = ACTION_SI_DUPPLIQUE.AJOUTER_NOUVEAU; } else { actionSiDupplique = ACTION_SI_DUPPLIQUE.REMPLACER_ANCIEN; } }