コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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;
            }
        }