Beispiel #1
0
        /// <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);
            }
        }
Beispiel #2
0
        /// <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);
            }
        }
Beispiel #3
0
        /// <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);
            }
        }
Beispiel #4
0
        /// <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);
            }
        }