private void EditSave_Click(object sender, RoutedEventArgs e) { List <string> vs = new List <string>(); vs.Add(FN.Text); vs.Add(LN.Text); vs.Add(BRTD.Text); vs.Add(BRTM.Text); vs.Add(BRTY.Text); vs.Add(E_MAIL.Text); vs.Add(MOBIL.Text); vs.Add(TELEPHON.Text); vs.Add(GENDER.Text); vs.Add(PICTURE.Text); vs.Add(USERNAME.Text); vs.Add(PASSWORD.Password); vs.Add(S_E_D.Text); Person2 person2 = new Person2(); person2.Edit_Person(vs, OLD_Username, OLD_Password); OLD_Username = USERNAME.Text; OLD_Password = PASSWORD.Password; Customer_Dashboard customer_Dashboard = new Customer_Dashboard(USERNAME.Text, PASSWORD.Password); }