private void kryptonContextMenuItem2_Click(object sender, EventArgs e)
        {
            Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Создание отчета.\r\nПодождите..."); });

            T.Start();

            while (!SplashWindow.bSmallCreated)
            {
                ;
            }
            NeedSplash = false;

            MarketingBatchReport.CreateReport(((DataTable)((BindingSource)ExpFrontsDataGrid.DataSource).DataSource).DefaultView.Table,
                                              ((DataTable)((BindingSource)ExpDecorProductsDataGrid.DataSource).DataSource).DefaultView.Table, "Общая статистика.Склад");

            NeedSplash = true;
            while (SplashWindow.bSmallCreated)
            {
                SmallWaitForm.CloseS = true;
            }
        }
        private void kryptonContextMenuItem4_Click(object sender, EventArgs e)
        {
            DateTime Monday = GetMonday(CurrentWeekNumber);

            Thread T = new Thread(delegate() { SplashWindow.CreateSmallSplash(ref TopForm, "Создание отчета.\r\nПодождите..."); });

            T.Start();

            while (!SplashWindow.bSmallCreated)
            {
                ;
            }
            NeedSplash = false;

            MarketingBatchReport.CreateReport(((DataView)MondayFrontsDG.DataSource).Table,
                                              ((DataView)MondayDecorProductsDG.DataSource).Table, "Состояние заказов. " + Monday.ToString("dd MMMM yyyy"));

            NeedSplash = true;
            while (SplashWindow.bSmallCreated)
            {
                SmallWaitForm.CloseS = true;
            }
        }