Esempio n. 1
0
 public LoginWindow(email m)
 {
     InitializeComponent();
     if (!File.Exists("C:/EasySecurity/first.bmv"))
     {
         MessageBox.Show("This is the first run of EasySecurity, please set a 12 charactar password for your key pair", "Information", MessageBoxButton.OK, MessageBoxImage.Information);
         EmailHelper.First_Run(this);
     }
     else
     {
         this.Show();
     }
     this.mail          = m;
     MyInfo.isconnected = false;
 }
Esempio n. 2
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     mail        = new email();
     loginwindow = new LoginWindow(mail);
     //loginwindow.Show();
 }