コード例 #1
0
        ///   <summary>
        ///      removes selected task
        ///      <example>
        ///        <code>
        ///             Board.RemoveSelectedTask();
        ///        </code>
        ///      </example>
        ///    </summary>
        public static void RemoveSelectedTask()
        {
            BoardDB.GetTasks().Remove(Board.CurrentlySelectedTask.task);

            if (BoardDB.SaveChanges() == 1)
            {
                Board.GetListBasedOnSelectedColumn().RemoveAt(Board.CurrentlySelectedIndex);
            }
        }
コード例 #2
0
        ///<summary>
        ///      Adding new task to open column
        ///      <example>
        ///        <code>
        ///          Task task = new Task(); <para/>
        ///          Board.AddNewTaskToBoard(task);
        ///        </code>
        ///      </example>
        ///    </summary>
        public static void AddNewTaskToBoard(Task task)
        {
            BoardDB.GetTasks().Add(task);

            if (BoardDB.SaveChanges() == 1)
            {
                var employ = BoardDB.GetEmploy(task.employId);

                OpenTasksList.Add(new TaskAndEmploy(task, employ));
            }
        }