Esempio n. 1
0
        private async void AddUserBtn_Click(object sender, RoutedEventArgs e)
        {
            UserItemDialog      dialog = new UserItemDialog(null);
            ContentDialogResult result = await dialog.ShowAsync();

            if (result == ContentDialogResult.Primary)
            {
                updateList(null);
            }
        }
Esempio n. 2
0
        private async void UserList_DoubleTapped(object sender, DoubleTappedRoutedEventArgs e)
        {
            User item = (User)((ListView)sender).SelectedItem;

            UserItemDialog      dialog = new UserItemDialog(item.id);
            ContentDialogResult result = await dialog.ShowAsync();

            if (result == ContentDialogResult.Primary)
            {
                updateList(null);
            }
        }