Ejemplo n.º 1
0
 /// Get ID Of The Account
 public static int AccountId(string username)
 {
     AccountsTable table = new AccountsTable();
     int id = table.GetUserId(username);
     table.Dispose();
     return(id);
 }
Ejemplo n.º 2
0
        /// Remove Account From Id
        public static void RemoveAccount(string username)
        {
            AccountsTable table = new AccountsTable();

            table.Remove(username);
            table.Dispose();
        }
Ejemplo n.º 3
0
        /// Set Account Password From UserName
        public static void SetAccountPassword(string username, string password)
        {
            AccountsTable table = new AccountsTable();

            table.SetPassword(username, password);
            table.Dispose();
        }
Ejemplo n.º 4
0
 /// Get Account Password From User ID
 public static string AccountPassword(int id)
 {
     AccountsTable table = new AccountsTable();
     string password = table.GetPassword(id);
     table.Dispose();
     return(password);
 }
Ejemplo n.º 5
0
        /// Set Account Password From User Id
        public static void SetAccountPassword(int id, string password)
        {
            AccountsTable table = new AccountsTable();

            table.SetPassword(id, password);
            table.Dispose();
        }
Ejemplo n.º 6
0
        /// Remove Account From Id
        public static void RemoveAccount(int id)
        {
            AccountsTable table = new AccountsTable();

            table.Remove(id);
            table.Dispose();
        }
Ejemplo n.º 7
0
        /// Add New Account Into DB Table
        public static int AddAccount(string username, string password)
        {
            AccountsTable table = new AccountsTable();
            int           id    = table.Insert(username, password);

            table.Dispose();
            return(id);
        }
Ejemplo n.º 8
0
        /// Get Account Password From UserName
        public static string AccountPassword(string username)
        {
            AccountsTable table    = new AccountsTable();
            string        password = table.GetPassword(username);

            table.Dispose();
            return(password);
        }
Ejemplo n.º 9
0
        /// Get Account Password From User ID
        public static string AccountPassword(int id)
        {
            AccountsTable table    = new AccountsTable();
            string        password = table.GetPassword(id);

            table.Dispose();
            return(password);
        }
Ejemplo n.º 10
0
        /// Get ID Of The Account
        public static int AccountId(string username)
        {
            AccountsTable table = new AccountsTable();
            int           id    = table.GetUserId(username);

            table.Dispose();
            return(id);
        }
Ejemplo n.º 11
0
        // ============================================
        // PUBLIC Accounts Methods
        // ============================================
        /// Return All The Stored Accounts (Name)
        public static string[] Accounts()
        {
            AccountsTable table = new AccountsTable();

            string[] accounts = table.GetAllAccounts();
            table.Dispose();
            return(accounts);
        }
Ejemplo n.º 12
0
 /// Set Account Password From UserName
 public static void SetAccountPassword(string username, string password)
 {
     AccountsTable table = new AccountsTable();
     table.SetPassword(username, password);
     table.Dispose();
 }
Ejemplo n.º 13
0
 /// Set Account Password From User Id
 public static void SetAccountPassword(int id, string password)
 {
     AccountsTable table = new AccountsTable();
     table.SetPassword(id, password);
     table.Dispose();
 }
Ejemplo n.º 14
0
 /// Remove Account From Id
 public static void RemoveAccount(string username)
 {
     AccountsTable table = new AccountsTable();
     table.Remove(username);
     table.Dispose();
 }
Ejemplo n.º 15
0
 /// Remove Account From Id
 public static void RemoveAccount(int id)
 {
     AccountsTable table = new AccountsTable();
     table.Remove(id);
     table.Dispose();
 }
Ejemplo n.º 16
0
 /// Add New Account Into DB Table
 public static int AddAccount(string username, string password)
 {
     AccountsTable table = new AccountsTable();
     int id = table.Insert(username, password);
     table.Dispose();
     return(id);
 }
Ejemplo n.º 17
0
 /// Get Account Password From UserName
 public static string AccountPassword(string username)
 {
     AccountsTable table = new AccountsTable();
     string password = table.GetPassword(username);
     table.Dispose();
     return(password);
 }
Ejemplo n.º 18
0
 // ============================================
 // PUBLIC Accounts Methods
 // ============================================
 /// Return All The Stored Accounts (Name)
 public static string[] Accounts()
 {
     AccountsTable table = new AccountsTable();
     string[] accounts = table.GetAllAccounts();
     table.Dispose();
     return(accounts);
 }