Пример #1
0
        private void LoginNext_Click(object sender, System.EventArgs e)
        {
            this.error.Visible = false;
            Certificate cert = new Certificate();

            this.form.logged = cert.readKey(this.filepath, this.password.Text);
            if (this.form.logged)
            {
                this.loggin        = true;
                this.error.Visible = false;
                base.Close();
            }
            else
            {
                this.error.Visible = true;
            }
        }
Пример #2
0
 private void LoginNext_Click(object sender, System.EventArgs e)
 {
     this.error.Visible = false;
     Certificate cert = new Certificate();
     this.form.logged = cert.readKey(this.filepath, this.password.Text);
     if (this.form.logged)
     {
         this.loggin = true;
         this.error.Visible = false;
         base.Close();
     }
     else
     {
         this.error.Visible = true;
     }
 }