private async void loadNextDataFromDB(object sender, EventArgs e)
        {
            comboBoxFabric.DataSource = null;
            comboBoxFabric.Invalidate();
            labelFabricCategory.Text   = "0$";
            labelFabricCategoryId.Text = "0";
            setToolTip((Control)sender, comboBoxCurtainSubtype.SelectedItem.ToString().Split(new char[] { '[', ',', ']' }, StringSplitOptions.None)[1]);
            string boxCurtainType = "";

            if (comboBoxCurtainType.InvokeRequired)
            {
                comboBoxCurtainType.Invoke((MethodInvoker) delegate
                {
                    boxCurtainType = comboBoxCurtainType.SelectedValue.ToString();
                });
            }
            else
            {
                boxCurtainType = comboBoxCurtainType.SelectedValue.ToString();
            }

            string boxCurtainSubType = "";

            if (comboBoxCurtainSubtype.InvokeRequired)
            {
                comboBoxCurtainSubtype.Invoke((MethodInvoker) delegate
                {
                    boxCurtainSubType = comboBoxCurtainSubtype.SelectedValue.ToString();
                });
            }
            else
            {
                boxCurtainSubType = comboBoxCurtainSubtype.SelectedValue.ToString();
            }

            CurtainDesigner.Controllers.Classes.FabricCurtainControlerManager <Classes.FabricCurtain, List <Classes.FabricCurtain2>, FormFabricCurtainOrder, DataGridView> controler = new CurtainDesigner.Controllers.Classes.FabricCurtainControlerManager <Classes.FabricCurtain, List <Classes.FabricCurtain2>, FormFabricCurtainOrder, DataGridView>();
            Task t1 = Task.Run(() => controler.load_data(this, boxCurtainType, boxCurtainSubType));

            comboBoxFabric.Enabled = true;
            await Task.WhenAll(t1);

            //update_status(sender, e);
            //update_status(comboBoxFabric, e);
        }
 private async void LoadDataFromDb()
 {
     CurtainDesigner.Controllers.Classes.FabricCurtainControlerManager <Classes.FabricCurtain, List <Classes.FabricCurtain2>, FormFabricCurtainOrder, DataGridView> controler = new CurtainDesigner.Controllers.Classes.FabricCurtainControlerManager <Classes.FabricCurtain, List <Classes.FabricCurtain2>, FormFabricCurtainOrder, DataGridView>();
     await Task.Run(() => controler.load_data(this));
 }