Exemplo n.º 1
0
 public static bool LoadSomeData()
 {
     try
     {
         ClearAll();
         return(FillAll());
     }
     catch (Exception e)
     {
         var de = new DetailedConstraintException2(e.Message, MyData.DataSetKlons);
         Form_Error.ShowException(de);
         return(false);
     }
 }
Exemplo n.º 2
0
        public static bool LoadSomeData()
        {
            int mtct = MyData.Params.LoadMonths;
            var dt1  = DateTime.Today.AddMonths(1);
            var dt2  = dt1.AddMonths(-mtct);

            try
            {
                return(LoadPeriod(dt2.Year, dt2.Month, dt1.Year, dt1.Month));
            }
            catch (Exception e)
            {
                var de = new DetailedConstraintException2(e.Message, MyData.DataSetKlons);
                Form_Error.ShowException(de);
                return(false);
            }
        }