Esempio n. 1
0
        private void Form1_KeyUp(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.D1:
                drop[0].PerformClick();
                break;

            case Keys.D2:
                drop[1].PerformClick();
                break;

            case Keys.D3:
                drop[2].PerformClick();
                break;

            case Keys.D4:
                drop[3].PerformClick();
                break;

            case Keys.D5:
                drop[4].PerformClick();
                break;

            case Keys.D6:
                drop[5].PerformClick();
                break;

            case Keys.D7:
                drop[6].PerformClick();
                break;

            case Keys.N:
                ResetButton.PerformClick();
                break;

            case Keys.D8:
                checkBox1.Checked = !checkBox1.Checked;
                break;

            case Keys.D9:
                checkBox4.Checked = !checkBox4.Checked;
                break;

            default:
                break;
            }
        }
Esempio n. 2
0
        private void chargerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FileManager fp         = new FileManager();
            string      AllDomains = fp.ReadDomains();

            string[] tabDomains = AllDomains.Split(';');

            //Avertir l'utilisateur qu'il y a des changements non sauvegardés

            ResetButton.PerformClick();

            for (int i = 0; i < tabDomains.Count(); i++)
            {
                domainListBox.Items.Add(tabDomains[i]);
                Domain tmp = fp.ReadPasswords(tabDomains[i]);
                if (tmp != null)
                {
                    _listDomain.Add(tmp);
                }
            }
        }