private void PeopleList_MouseDoubleClick(object sender, MouseButtonEventArgs e) { PersonModel person = (PersonModel)PeopleList.SelectedItem; if (person != null) { PersonUC personUC = new PersonUC(person); PersonGrid.Visibility = Visibility.Visible; MainGrid_PeopleUC.Visibility = Visibility.Collapsed; PersonContentControl.Content = personUC; } }
private void SelectedPersonButton_Click(object sender, RoutedEventArgs e) { StaffModel staff = (StaffModel)StaffsList.SelectedItem; if (staff != null) { UserGrid.Visibility = Visibility.Collapsed; PersonLogGrid.Visibility = Visibility.Visible; PersonUC personUC = new PersonUC(staff.Person); PersonLogContentControl.Content = personUC; } }
private void SelectedPersonButton_Click(object sender, RoutedEventArgs e) { SupplierModel supplier = (SupplierModel)SupplierSearchValue.SelectedItem; if (supplier != null) { PersonUC personUC = new PersonUC(supplier.Person); SelectedSupplierContentControl.Content = personUC; SelectedSupplierLogGrid.Visibility = Visibility.Visible; UserGrid.Visibility = Visibility.Collapsed; } }