示例#1
0
        async private void OnDeleteTarea(object sender, EventArgs e)
        {
            var mi   = sender as MenuItem;
            var item = mi.CommandParameter as Tarea;
            await manager.Delete(item.Id);

            Refresh();
        }
示例#2
0
        async private void OnDelete(object sender, EventArgs e)
        {
            var mi = ((MenuItem)sender);

            await manager.Delete(mi.CommandParameter.ToString());
        }