Exemplo n.º 1
0
        private void TovarLoad()
        {
            Action action = () =>
            {
                try
                {
                    dataComb.dtTovar.Clear();
                    dataComb.dtTovarFill();
                    dataComb.dependency.OnChange += Tovaronchange;
                    comboBox4.DataSource          = dataComb.dtTovar;
                    comboBox4.ValueMember         = "ID_Tovar";
                    comboBox4.DisplayMember       = "Товар";
                }
                catch
                {
                }
            };

            Invoke(action);
        }
Exemplo n.º 2
0
 private void TovariLoad()
 {
     try
     {
         Action action = () =>
         {
             try
             {
                 DataBaseTables dataComb = new DataBaseTables();
                 dataComb.dtTovar.Clear();
                 dataComb.dtTovarFill();
                 dataComb.dependency.OnChange        += Tovonchange;
                 dataGridView1.DataSource             = dataComb.dtTovar;
                 dataGridView1.Columns[0].Visible     = false;
                 dataGridView1.Columns[2].Visible     = false;
                 dataGridView1.Columns[3].Visible     = false;
                 dataGridView1.Columns[6].Visible     = false;
                 dataGridView1.Columns[7].Visible     = false;
                 dataGridView1.Columns[9].Visible     = false;
                 dataGridView1.Columns[10].Visible    = false;
                 dataGridView1.Columns[12].Visible    = false;
                 dataGridView1.Columns[13].Visible    = false;
                 dataGridView1.Columns[15].Visible    = false;
                 dataGridView1.Columns[1].HeaderText  = "Наименование";
                 dataGridView1.Columns[4].HeaderText  = "Фирма";
                 dataGridView1.Columns[5].HeaderText  = "Цена";
                 dataGridView1.Columns[8].HeaderText  = "Пол";
                 dataGridView1.Columns[11].HeaderText = "Цвет";
                 dataGridView1.Columns[14].HeaderText = "Вид";
             }
             catch
             {
             }
         };
         Invoke(action);
     }
     catch { }
 }
Exemplo n.º 3
0
 public void TovarLoad()
 {
     try
     {
         Action action = () =>
         {
             try
             {
                 DataBaseTables dataComb = new DataBaseTables();
                 dataComb.dtTovar.Clear();
                 dataComb.dtTovarFill();
                 dataComb.dependency.OnChange += Tovaronchange;
                 comboBox1.DataSource          = dataComb.dtTovar;
                 comboBox1.ValueMember         = "ID_Tovar";
                 comboBox1.DisplayMember       = "Товар";
             }
             catch
             {
             }
         };
         Invoke(action);
     }
     catch { }
 }