Ejemplo n.º 1
0
 void OpenMPWForm()
 {
     //default PW
     frm_MainPWEntry frm = new frm_MainPWEntry(Settings1.Default.mainpw);
     frm.ShowDialog();
 }
Ejemplo n.º 2
0
 private void connecterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     frm_MainPWEntry frm = new frm_MainPWEntry(Settings1.Default.mainpw);
     frm.ShowDialog();
     if(frm.Controled == true)
     {
         this.Connected = true;
         connecterToolStripMenuItem1.Visible = false;
         déconnecterToolStripMenuItem1.Visible = true;
         changerMotDePasseToolStripMenuItem.Visible = true;
         this.ListInfos=pwstoreTools.UnserializeList(Settings1.Default.mainpw,Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));
         if (this.ListInfos == null)
             MessageBox.Show("Le fichier de mots de passes n'existe pas encore !", "Avertissement !");
         else
             this.UnmaskList();
     }
 }