示例#1
0
        private async void Delete_Click(Object sender, RoutedEventArgs e)
        {
            FrameworkElement fe = sender as FrameworkElement;

            if (fe != null)
            {
                Transaction t = fe.DataContext as Transaction;
                if (t != null)
                {
                    TransactionViewModel.transaction = t;
                    TransactionViewModel.Delete();
                    MessageDialog md = new MessageDialog("Transaction Deleted!");
                    await md.ShowAsync();
                }
            }
        }