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