private void btnRunningSelectQuery_Click(object sender, EventArgs e)
        {
            var AppsData = new clRW();

            if (chkSelect.SelectedIndex == 2)
            {
                RefreshGridView(AppsData.GetAll());
            }
            else
            {
                if ((chkSelect.SelectedIndex == 0) && (DataSelect.Value <= DateTime.Now))
                {
                    int day   = DataSelect.Value.Day;
                    int mount = DataSelect.Value.Month;
                    int year  = DataSelect.Value.Year;
                    ViewSelectDay();
                }
                else if ((chkSelect.SelectedIndex == 1) && (DataSelect.Value.Month <= DateTime.Now.Month) && (DataSelect.Value.Year <= DateTime.Now.Year))
                {
                    int mount = DataSelect.Value.Month;
                    int year  = DataSelect.Value.Year;
                    ViewSelectMount();
                }
                else
                {
                    MessageBox.Show("Вы выбрали дату больше сегодняшней!");
                }
            }
        }
        private void ViewSelectMount()
        {
            var SelectMount = new clRW();
            var source      = SelectMount.Get(false, DataSelect.Value);

            RefreshGridViewAppCount(source);
        }
        private void ViewSelectDay()
        {
            //MessageBox.Show("За день");

            var SelectDay = new clRW();
            var source    = SelectDay.Get(true, DataSelect.Value);

            RefreshGridViewAppCount(source);
        }
        public frmViewResult()
        {
            InitializeComponent();

            var AppsData = new clRW();

            RefreshGridView(AppsData.GetAll());

            GridViewApps.Columns[0].Visible = false;

            GridViewApps.Columns[1].HeaderText = "Дата/Время";
            GridViewApps.Columns[1].DefaultCellStyle.Format = "dd.MM HH:mm:ss"; //Формат данных по умолчанию

            GridViewApps.Columns[2].HeaderText = "Что было запущено";

            GridViewApps.Columns[3].Visible = false;

            GridViewApps.AllowUserToAddRows = false;
            GridViewApps.SelectionMode      = DataGridViewSelectionMode.FullRowSelect;
            GridViewApps.MultiSelect        = false;
        }