Beispiel #1
0
        private void toolStripButtonDownload_Click(object sender, EventArgs e)
        {
            if (ApplicationDeployment.IsNetworkDeployed)
            {
                InputBoxResult ibr = InputBox.Show("Entrez le nom du groupe de photos:", "Vérification");

                if (ibr.ReturnCode != System.Windows.Forms.DialogResult.OK)
                {
                    return;
                }

                // ne faisons pas trop compliqué...
                if (ibr.Text.ToLower() != "barbaggio")
                {
                    return;
                }

                //ApplicationDeployment.CurrentDeployment.DownloadFileGroup("Famille");
                FormDownload.Download("Famille", false);

                if (Properties.Settings.Default.PhotosSupp == null)
                {
                    Properties.Settings.Default.PhotosSupp = new System.Collections.Specialized.StringCollection();
                }
                Properties.Settings.Default.PhotosSupp.Add("Famille");
                Properties.Settings.Default.Save();

                Enfants.Recharge();
                FormEnfants_Load(null, null);       // recharge le listView
            }
        }
 private void buttonAjoutEnfant_Click(object sender, EventArgs e)
 {
     timerProgressBar.Stop();
     Enfants.Ajout(comboBoxPrenom);
     Enfants.Selecteur(comboBoxPrenom, pictureBoxPhoto);
     //userControl11.Focus();
     timerProgressBar.Start();
 }
        private void UserControlResult_Load(object sender, EventArgs e)
        {
            Enfants.Init(comboBoxPrenom);
            Historique.SetListBox(listBoxHistorique);

            toolStripStatusLabelSucces.Text  = "";
            toolStripStatusLabelErreurs.Text = "";

            toolStripProgressBar1.Minimum = 0;
            toolStripProgressBar1.Maximum = 5000;   // 5 secondes
            toolStripProgressBar1.Step    = 100;    //
            timerProgressBar.Interval     = 100;    // mise à jour toutes les 100 ms

            toolTip1.SetToolTip(buttonAjoutEnfant, "Ajoute un prénom personnalisé");

            // timer pour afficher l'horloge
            timerHeure_Tick(null, null);
            timerHeure.Interval = 1000;
            timerHeure.Start();
        }
 private void comboBoxPrenom_SelectedIndexChanged(object sender, EventArgs e)
 {
     Enfants.Selecteur(comboBoxPrenom, pictureBoxPhoto);
     //userControl11.Focus();
 }