Beispiel #1
0
 protected virtual void OnDeleteButtonClicked(DeleteButtonClickedEventArgs e)
 {
     if (DeleteButtonClicked != null)
     {
         DeleteButtonClicked(this, e);
     }
 }
Beispiel #2
0
        private void label1_Click(object sender, EventArgs e)
        {
            DeleteButtonClickedEventArgs args = new DeleteButtonClickedEventArgs();

            args.KanbanPosition = (KanbanPosition)this.Tag;
            args.TaskItem       = this;

            OnDeleteButtonClicked(args);
        }
Beispiel #3
0
        void kanbanItem_DeleteButtonClicked(object sender, DeleteButtonClickedEventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are you sure ?", "Remove task from kanban", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2);

            if (dialogResult == DialogResult.Yes)
            {
                Sprint sprint = (Sprint)comboBoxCurrentSprint.SelectedItem;
                sprint.Kanban.Remove(e.KanbanPosition);
                e.TaskItem.Dispose();
            }
        }