public AuthForm() { InitializeComponent(); cbMethod.SelectedIndex = 0; hash = new MD5hash(); skey = new SKeyAuthSever(); standart = new StandartAuthServer(); authType = AuthType.STANDART; attempts = 0; tbPassword.UseSystemPasswordChar = true; file = ".\\DataBase.txt"; }
public RegistrationForm(AuthForm af, AuthType at) { InitializeComponent(); tbPassword.UseSystemPasswordChar = true; tbPassword.MaxLength = 16; tbLogin.MaxLength = 16; //file = ".\\DataBase.txt"; hash = new MD5hash(); skey = new SKeyAuthSever(); standart = new StandartAuthServer(); aform = af; atype = at; lbPassword.Text = (at == AuthType.STANDART) ? "Password" : "Key"; }