private void UpdatePosition(PositionNames newPosition, Controls.TodoItem target) { _areas[target.Position].Controls.Remove(target); target.Position = newPosition; _areas[newPosition].Controls.Add(target); _service.Update(target.ID, newPosition, target.Description, target.ItemName); }
private void AddNewControl(Dtos.TodoItem todo) { var control = new Controls.TodoItem(); control.RemoveTodoTask += ControlRemoveTodoTask; control.SaveTodoTask += Control_SaveTodoTask; control.LoadData(todo); control.MouseDown += Control_MouseDown; todoControls.Add(todo.Id, control); _areas[todo.Position].Controls.Add(control); }