예제 #1
0
        private void OnDelete(object sender, EventArgs e)
        {
            MenuItem menuItem     = sender as MenuItem;
            Party    selectedItem = menuItem.CommandParameter as Party;

            _partiesFromDB.Remove(selectedItem);
            dbTransaction.DeleteAsync(selectedItem);
        }