//Добавление задач в dgOverview
        private void addTasksToDG()
        {
            int weekID = db.getWeekID(date);                                  //Получаем ID недели
            List <List <string> > listOfTasks = db.getTasks(weekID, "False"); //Поиск всех задач связаных с этой неделью

            foreach (List <string> task in listOfTasks)                       //Добавляем информацию об задачах
            {
                Item newRow = new Item()
                {
                    taksID = task[0], Goal = task[1], Task = task[2], Priority = task[3]
                };

                int    day        = Convert.ToInt32(task[4]);
                int    timeForDay = Convert.ToInt32(task[5]);
                string minutes    = DataGridHelper.getDayLength(timeForDay);

                if (task.Count > 5)
                {
                    if (task[6] != "")
                    {
                        string timeFrom = DataGridHelper.getShortTime(task[6]);
                        string timeTo   = DataGridHelper.getShortTime(task[7]);

                        minutes += "(" + timeFrom + "-" + timeTo + ")";
                    }
                }
                setDayValue(newRow, day, minutes);

                dgOverview.Items.Add(newRow);
            }
        }
        //Добавление задач в dgOverview
        private void addTasksToDG()
        {
            List <List <string> > listOfTasks = db.getTasks(boolType);; //Поиск всех задач связаных с этой неделью

            foreach (List <string> task in listOfTasks)                 //Добавляем информацию об задачах
            {
                Item newRow = new Item()
                {
                    taksID = task[0], Goal = task[1], Task = task[2], Priority = task[3]
                };

                int    timeForDay = Convert.ToInt32(task[4]);
                string minutes    = DataGridHelper.getDayLength(timeForDay);

                if (task.Count > 4)
                {
                    if (task[5] != "")
                    {
                        string timeFrom = DataGridHelper.getShortTime(task[5]);
                        string timeTo   = DataGridHelper.getShortTime(task[6]);

                        minutes += "(" + timeFrom + "-" + timeTo + ")";
                    }
                }

                newRow.Time = minutes;

                dgOverview.Items.Add(newRow);
            }

            DataGridHelper.actualDataGridSize(dgOverview);
        }