/// <summary>
 /// Обновляет таблицу статистики
 /// </summary>
 public void UpdateStatistics()
 {
     try
     {
         this.dataGridStatistics.SelectAll();
         this.dataGridStatistics.ClearSelection();
         List <string[]> employees;
         //Не используются даты нет фильтра
         if (this.radioButtonShowAll.Checked)
         {
             employees = ViewEmployee.GetEmployeeAsStatistics();
         }
         //Не используются даты, фильтрация
         else if (this.radioButtonNotFoudJob.Checked)
         {
             employees = ViewEmployee.GetEmployeeAsStatistics("", "", "false");
         }
         //Используются даты и фильтр
         else
         {
             employees = ViewEmployee.GetEmployeeAsStatistics(dateTimePickerStartStatictics.Value.ToString(), dateTimePickerEndStatistics.Value.ToString(), "true");
         }
         if (employees.Count == 0)
         {
             throw new Exception("Нет информации для показа");
         }
         this.dataGridStatistics.RowCount = employees.Count;
         int currentRow = 0;
         foreach (string[] currentEmployee in employees)
         {
             //Добавить все элементы как текстовые
             for (int i = 0; i < currentEmployee.Count() - 1; i++)
             {
                 this.dataGridStatistics.Rows[currentRow].Cells[i].Value = currentEmployee.ElementAt(i);
             }
             //Последний элемент добавить как check-box
             //Создание новой ячейки-checkBox
             DataGridViewCheckBoxCell comboBox = new DataGridViewCheckBoxCell();
             comboBox.Value = Boolean.Parse(currentEmployee.ElementAt(currentEmployee.Length - 1));
             //Установить новую ячейку в нужное место
             dataGridStatistics.Rows[currentRow].Cells[dataGridStatistics.ColumnCount - 1] = comboBox;
             currentRow++;
         }
     }
     catch (Exception err)
     {
         Console.Error.Write(err.Message);
         MessageBox.Show("Невозможно получить статистику.\nИли нет информации для отображения");
     }
 }