private void btnAddPerson_Click(object sender, RoutedEventArgs e) { viewModel.ResetNewPerson(); PersonWindow.Visibility = Visibility.Collapsed; if (AddPersonWindow.Visibility != Visibility.Visible) { AddPersonWindow.Resize(); } EditButton.Visibility = Visibility.Collapsed; SaveButton.Visibility = Visibility.Visible; }
private void btnEdit_Click(object sender, RoutedEventArgs e) { AddPersonWindow.Resize(); }