private async void MoveAppCertificateToUserCertificateStore(object sender, RoutedEventArgs e) { var item = (ListViewItem)AppCertificateListView.SelectedItem; if (item != null) { var certificate = (Certificate)item.Tag; if (await userStore.RequestAddAsync(certificate)) { appStore.Delete(certificate); MoveItemBetweenListViews(item, AppCertificateListView, UserCertificateListView); } } }
private async void MoveAppCertificateToUserCertificateStore() { var item = (CertificateItem)AppCertificateListView.SelectedItem; if (item != null) { if (await userStore.RequestAddAsync(item.Certificate)) { appStore.Delete(item.Certificate); AppCertificateListView.Items.Remove(item); UserCertificateListView.Items.Add(item); UserCertificateListView.SelectedItem = item; UserCertificateListView.ScrollIntoView(item); } } }