Пример #1
0
        private void StartOfDay()
        {
            int numberOfModules = 0;

            try
            {
                using (business.BusinessRulesOne obj = new business.BusinessRulesOne())
                {
                    numberOfModules = obj.ListarModulos(1).Rows.Count;
                }

                if (numberOfModules > 0)
                {
                    txtConexion.Text = "Conexión exitosa";
                }
            }
            catch (Exception ex) {
                //Usando Logger ...
            }
        }
Пример #2
0
        private void StartOfDay()
        {
            int numberOfModules = 0;

            try
            {
                using (business.BusinessRulesOne obj = new business.BusinessRulesOne())
                {
                    numberOfModules = obj.ListModules(1).Rows.Count;
                }

                if (numberOfModules > 0)
                {
                    txtConexion.Text = "Conexión exitosa";
                }
            }
            catch (Exception ex) {
                //Logger can be added also here.
            }
        }