//This function loads the text fields with user information //UNDER CONSTRUCTION !! GLOBAL VARIABLE FOR DETERMINING USER ID IS NECESSARY void LoadAccount_Click(object sender, EventArgs e) { DBRepository dbr = new DBRepository (); var result = dbr.GetAccount(); Toast.MakeText (this, result, ToastLength.Short).Show (); EditText ID = FindViewById<EditText> (Resource.Id.txtGetId); //ID.SetText = dbr.GetAccount(UGHHHHH) EditText user = FindViewById<EditText> (Resource.Id.txtGetUsername); EditText pass = FindViewById<EditText> (Resource.Id.txtGetPassword); EditText access = FindViewById<EditText> (Resource.Id.txtGetAccess); }
//This function displays all users as a message void GetAll_Click(object sender, EventArgs e) { DBRepository dbr = new DBRepository (); string result = dbr.GetAccount (); Toast.MakeText (this, result, ToastLength.Short).Show (); }