Пример #1
0
 private void MenuItemUserControl_OnClick(object sender, RoutedEventArgs e)
 {
     CommonMethods.SafeRunMethod.WithoutReturn(() => {
         httpClientProvider.GetDatabaseUserReaderAsAdmin().GetAll();
         new FullListUsersWindow(httpClientProvider).ShowDialog();
     });
 }
Пример #2
0
 private void ReloadDataGridUsersItemsSource()
 {
     DataGridUsers.ItemsSource = CommonMethods.SafeRunMethod.WithReturn(() => httpClientProvider.GetDatabaseUserReaderAsAdmin().GetAll());
 }