public void ShowValues() { Mname.GetComponent <TextMesh> ().text = nome.ToString(); Mlevel.GetComponent <TextMesh> ().text = level.ToString(); Mvida.GetComponent <TextMesh> ().text = vida.ToString(); Mener.GetComponent <TextMesh> ().text = ener.ToString(); Mtox.GetComponent <TextMesh> ().text = tox.ToString(); Mcons.GetComponent <TextMesh> ().text = cons.ToString(); Mresis.GetComponent <TextMesh> ().text = resis.ToString(); Mfor.GetComponent <TextMesh> ().text = forc.ToString(); Ppontos.GetComponent <TextMesh> ().text = playerPoints.ToString(); }
public MedicineDataAddForm_InListView(Medicinedata m, MainView mainView, int flag) { this.mainView = mainView; this.flag = flag; InitializeComponent(); LoadData(); Mname.SelectedIndex = Mname.FindStringExact(m.MName); Mname.Enabled = false; NMvalue.Text = m.Unit.Split(' ')[0]; MCvalue.Text = m.Unit.Split(' ')[0]; MRvalue.Text = m.FlowRate.Split(' ')[0]; NMunit.SelectedIndex = NMunit.FindStringExact(m.Unit.Split(' ')[1]); MCunit.SelectedIndex = NMunit.FindStringExact(m.Unit.Split(' ')[1]); MRunit.SelectedIndex = NMunit.FindStringExact(m.Unit.Split(' ')[1]); }
public MedicineDataAddForm_InListView(AnesthesiaMedicineRecord m, MainView mainView, int flag) { this.mainView = mainView; this.flag = flag; this.medicineRecord = m; InitializeComponent(); LoadData(); Console.WriteLine("HJK" + m.MedicineID); Mname.SelectedIndex = Mname.FindStringExact(medicineDataRepository.selectById(m.MedicineID).MName); Mname.Enabled = false; NMvalue.Text = m.ActualAmount.Split(' ')[0]; MCvalue.Text = m.ActualAmount.Split(' ')[0]; MRvalue.Text = m.FlowRate.Split(' ')[0]; NMunit.SelectedIndex = NMunit.FindStringExact(medicineRecord.ActualAmount.Split(' ')[1]); MCunit.SelectedIndex = NMunit.FindStringExact(medicineRecord.ActualAmount.Split(' ')[1]); MRunit.SelectedIndex = NMunit.FindStringExact(medicineRecord.ActualAmount.Split(' ')[1]); }
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; * */ }