Example #1
0
        private void Pnl_DragDrop(object sender, DragEventArgs e)
        {
            Label lbl = e.Data.GetData(typeof(Label)) as Label;
            Panel pnl = sender as Panel;

            task = new TodoTask();
            task = _todoTaskController.GetTask((Guid)lbl.Tag);
            ChangeStatus(pnl);
            _todoTaskController.Update(task);
            lbl.Parent.Controls.Remove(lbl);
            pnl.Controls.Add(lbl);
        }
Example #2
0
 private void FrmTaskControl_Load(object sender, EventArgs e)
 {
     task         = new TodoTask();
     task         = _todoTaskController.GetTask((Guid)Tag);
     txtTask.Text = (task.Name).Trim();
 }