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); }
private void FrmTaskControl_Load(object sender, EventArgs e) { task = new TodoTask(); task = _todoTaskController.GetTask((Guid)Tag); txtTask.Text = (task.Name).Trim(); }