예제 #1
0
 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);
 }
예제 #2
0
        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);
        }