public AccountHoldee(account_head Account_Database, Event_Controller Event_Database, account_info account) { ActDB = Account_Database; EvtDB = Event_Database; user = account; InitializeComponent(); }
public SpotHoldee(account_head Account_Database, Event_Controller Event_Database, account_info account, Spot view) { ActDB = Account_Database; EvtDB = Event_Database; user = account; current = view; InitializeComponent(); }
public Eventd(account_head Account_Database, Event_Controller Event_Database, account_info account, Event eve) { ActDB = Account_Database; EvtDB = Event_Database; Evt = eve; user = account; InitializeComponent(); }
// creates a new account_info object with the email address and password passed into the method public bool create_account(string new_email, string password) { if (search_list(new_email)) // checks to see if email already exists { return(false); } account_info temp = new account_info(new_email, password); return(add_node(temp)); // adds account to the LLL }
// looks through the LLL to see if the email and password passed into the method exist in the list public bool check_info(string email, string password) { if (!search_list(email)) // checks to see if the email exists in the LLL { return(false); } account_info temp = found_account.get_current_account(); return(temp.check_password(password)); // checks to see if the password matches the account }
// adds a new node to the LLL with the account_info passed into the method public bool add_node(account_info new_account) { if (node_count < 1) // if there are no nodes in the LLL { next = new account_node(new_account); node_count += 1; return(true); } // if there are nodes in the LLL account_node temp = next; next = new account_node(new_account); next.set_an_next(temp); node_count += 1; return(true); }
// changes the current_account in the node to the new_accound passed into the method public bool set_current_account(account_info new_account) { current_account = new_account; return(true); }
private account_node previous; // the previous node in the LLL public account_node(account_info new_account) { current_account = new_account; next = null; previous = null; }