void taskItem_RequestShowInTaskbar(Task item) { if (TaskItemOpened != null) { TaskItemOpened.Invoke(item); } }
void item_ItemClicked(object sender, EventArgs e) { ButtonGridItem bgSender = (ButtonGridItem)sender; Task item = (Task)bgSender.UserObject; taskMenuPositioner.CurrentItem = bgSender; item.clicked(taskMenuPositioner); hide(); if (TaskItemOpened != null) { TaskItemOpened.Invoke(item); } }