/// <summary> /// Get the function that belongs to the corresponding AccountID /// </summary> /// <param name="ID">The id of an Account</param> /// <returns>True if function exists false if not</returns> private static bool GetFunction(int ID) { string Check = DatabaseLogin.GetString(ID, "Functie"); if (Check != "") { Function = TranslateFunction(Check); return(true); } else { return(false); } }
/// <summary> /// Checks if an account exists in the database /// </summary> /// <param name="ID">The id of an account</param> /// <returns>True if account exists false if not</returns> private static bool GetUserName(int ID) { string Check = DatabaseLogin.GetString(ID, "Gebruikersnaam"); if (Check != "") { UserName = Check; return(true); } else { return(false); } }
/// <summary> /// Gets the password that belongs to the corresponding AccountID /// </summary> /// <param name="ID">The id of an account</param> /// <returns>True if password exists false if not</returns> private static bool GetPassword(int ID) { string Check = DatabaseLogin.GetString(ID, "Wachtwoord"); if (Check != "") { Password = Check; return(true); } else { return(false); } }
/// <summary> /// Gets the name that belongs to the corresponding AccountID /// </summary> /// <param name="ID">The id of an Account</param> /// <returns>True if the name exists false if not</returns> private static bool GetName(int ID) { string Check = DatabaseLogin.GetString(ID, "Naam"); if (Check != "") { Name = Check; return(true); } else { return(false); } }