private void SaveButton_Click(object sender, RoutedEventArgs e) { student.Name = StudentName.Text; student.SurName = StudentSurName.Text; student.Login = StudentLogin.Text; student.Password = StudentPassword.Text; string answer = client.EditStudent(student); if (answer == "succesfull") { main.Content = new AdminStudentPage(client, mw, main); } }
private void SaveButton_Click(object sender, RoutedEventArgs e) { StudentName.IsEnabled = false; StudentSurName.IsEnabled = false; StudentLogin.IsEnabled = false; StudentPassword.IsEnabled = false; SaveButton.IsEnabled = false; ChangeButton.IsEnabled = true; student.Name = StudentName.Text; student.SurName = StudentSurName.Text; student.Login = StudentLogin.Text; student.Password = StudentPassword.Text; string answer = client.EditStudent(student); if (answer == "succesfull") { } }