Esempio n. 1
0
        private void bgw_DoWork(object sender, DoWorkEventArgs e)
        {
            Employee emp = new Employee();
            DataTable dt = emp.SELECT_IDS();

            if (dt != null)
            {
                int ctr = dt.Rows.Count;
                for (int x = 0; x < ctr - 1; x++)
                {
                    bgw.ReportProgress(x);
                }
            }
            else{

            }
        }