private void ButtonSave_Click(object sender, RoutedEventArgs e) { vm_EditProfile s = new vm_EditProfile(); if (s.vm_updateProfile(ep_Firstname.Text, ep_Lastname.Text, ep_Age.Text, ep_Gender.Text, ep_Religion.Text, ep_Height.Text, ep_Weight.Text, ep_Zipcode.Text, ep_Description.Text)) { MessageBox.Show("Profile updated..."); } else { MessageBox.Show("Error updating Account. Check input please..."); } }
public EditProfile() { DataContext = new vm_EditProfile(); InitializeComponent(); vm_EditProfile s = new vm_EditProfile(); foreach (string entry in s.vm_selectCombobox("select * from Gender order by 1 asc", "Gender")) { ep_Gender.Items.Add(entry); } foreach (string entry in s.vm_selectCombobox("select * from Religion order by 1 asc", "Religion")) { ep_Religion.Items.Add(entry); } }