PasswordManagerLib/PasswordManagerCore.cs
/// <summary>
/// Method for log in into your account
/// </summary>
/// <param name="AccountIndex">Accunt index in list</param>
/// <param name="password">Password to compare</param>
/// <returns>If you log succesfull return true</returns>
Method for log in into your account
Method for log in into your account
public bool LogIn(int AccountIndex,string password)
        {
            if (Accounts.ElementAt(AccountIndex).CanILogIn(password))
            {
                IsLogged = true;
                LoggedAccount = Accounts.ElementAt(AccountIndex);
                LoggedAccount.LogIn(password);
                return true;
            }
            else return false;
        }
public bool LogIn ( int AccountIndex , string password ) { if ( Accounts . ElementAt ( AccountIndex ) . CanILogIn ( password ) ) { IsLogged = true ; LoggedAccount = Accounts . ElementAt ( AccountIndex ) ; LoggedAccount . LogIn ( password ) ; return true ; } else return false ; }
Method for log in into your account
Method for log in into your account
/*if(this.Accounts[AccountIndex].Password.ComparePasswords(password))
             {
                this.IsLogged = true;
                this.LoggedAccount = this.Accounts[AccountIndex];
                return true;
             }
             else
             {
                return false;
             }*/
If you log succesfull return true
If you log succesfull return true
AccountIndex
int
Accunt index in list
Accunt index in list
password
string
Password to compare
Password to compare