private void frmShipmentDelivery_Load(object sender, EventArgs e)
        {
            try
            {
                if (GlobalVariables.DeliveredSolvCatalysts == null)
                {
                    Thread trdDictionary = new Thread(delegate()
                    {
                        GlobalVariables.DeliveredSolvCatalysts = DeliveriesDB.GetDeliveredSolventCatalysts();
                    });

                    trdDictionary.IsBackground = true;
                    trdDictionary.Start();
                }
            }
            catch (Exception ex)
            {
                ErrorHandling.WriteErrorLog(ex.ToString());
            }
        }
Exemple #2
0
        private void frmDeliveredSolvents_Load(object sender, EventArgs e)
        {
            try
            {
                this.WindowState = FormWindowState.Maximized;

                if (GlobalVariables.DeliveredSolvCatalysts == null)
                {
                    Thread trdDictionary = new Thread(delegate()
                    {
                        GlobalVariables.DeliveredSolvCatalysts = DeliveriesDB.GetDeliveredSolventCatalysts();
                    });

                    trdDictionary.IsBackground = true;
                    trdDictionary.Start();
                }

                BindDeliverySolventsToGrid(GlobalVariables.DeliveredSolvCatalysts);
            }
            catch (Exception ex)
            {
                ErrorHandling.WriteErrorLog(ex.ToString());
            }
        }