Beispiel #1
0
        private void CbVidiLoad()
        {
            Action action = () =>
            {
                try
                {
                    DataBaseTables tables = new DataBaseTables();
                    tables.dtVidi_TovFill();
                    tables.dependency.OnChange += CbVidionchange;
                    comboBox3.DataSource        = tables.dtVidi_Tov;
                    comboBox3.ValueMember       = "ID_Vid";
                    comboBox3.DisplayMember     = "Naim";
                }
                catch
                {
                }
            };

            Invoke(action);
        }
Beispiel #2
0
        private void VidiLoad()
        {
            Action action = () =>
            {
                try
                {
                    DataBaseTables tables = new DataBaseTables();
                    tables.dtVidi_TovFill();
                    tables.dependency.OnChange += Vidionchange;
                    listBox3.DataSource         = tables.dtVidi_Tov;
                    listBox3.ValueMember        = "ID_Vid";
                    listBox3.DisplayMember      = "Naim";
                    Thread threadVid = new Thread(CbVidiLoad);
                    threadVid.Start();
                }
                catch
                {
                }
            };

            Invoke(action);
        }