// //ToString // public override string ToString() { string toString = "Client Name:\t\t" + CompanyName.ToString() + "\nContact Name:\t\t" + ContactName.ToString() + "\nBilling Address:\t\t" + BillingAddressFull().ToString() + "\nEmail Address:\t\t" + Email.ToString() + "\nPhone:\t\t" + Phone1 + "\nPhone 2:\t\t" + Phone2 + "\nOrder Count:\t\t" + OrderCount() + "\nDate Initiated With Company:\t\t" + ClientSinceDate.ToLongDateString() + "\nIndustry:\t\t" + IndustryType + "\nMoney Spent Total:\t\t" + MoneySpentTotal.ToString() + "\nClient Notes:\t\t" + ClientNotes; return(toString); } //end ToString Override1
private void UserRoleDropdown_ValueChanged(object sender, ValueChangedEventArgs e) { //i hate firebase if (isDataSent) { return; } //FName, LName, Mname, ContactName, Phone, Address, DOB, State, Zip reference.Child("Patient").Child(MainController.name).Child("address").SetValueAsync(Address.ToString()); reference.Child("Patient").Child(MainController.name).Child("state").SetValueAsync(State.ToString()); reference.Child("Patient").Child(MainController.name).Child("zipCode").SetValueAsync(Zip.ToString()); reference.Child("Patient").Child(MainController.name).Child("dateOfBirth").SetValueAsync(DOB.ToString()); reference.Child("Patient").Child(MainController.name).Child("emergencyContact").SetValueAsync(ContactName.ToString()); reference.Child("Patient").Child(MainController.name).Child("firstName").SetValueAsync(FName.ToString()); reference.Child("Patient").Child(MainController.name).Child("middleName").SetValueAsync(Mname.ToString()); reference.Child("Patient").Child(MainController.name).Child("lastName").SetValueAsync(LName.ToString()); reference.Child("Patient").Child(MainController.name).Child("phoneNumber").SetValueAsync(Phone.ToString()); message.text = "Account successfully updated."; isDataSent = true; /* * reference.Child("Patient").Child(MainController.name).SetValueAsync(UserName.text); * reference.Child("Patient").Child(UserName.text).Child("Username").SetValueAsync(UserName.text); * reference.Child("Patient").Child(UserName.text).Child("Role").SetValueAsync(RoleValue); * reference.Child("Patient").Child(UserName.text).Child("Password").SetValueAsync(Password.text); * reference.Child("Patient").Child(UserName.text).Child("DoB").SetValueAsync(DOB.text); * reference.Child("Patient").Child(UserName.text).Child("EmergencyContact").SetValueAsync("911"); * print("added to db"); * * message.text = "Account successfully updated."; * isDataSent = true; * */ }