private void DeleteTask_Click(object sender, RoutedEventArgs e) { MyTask.DeleteTask((Guid)((Button)sender).Tag); drawTaskCards(); }