Esempio n. 1
0
        private void backgroundGrid1_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                string        par    = e.Argument.ToString();
                LogDataFacade facade = new LogDataFacade(_guid);

                _listIPAddressYear = new List <DumpData>(facade.GetIPaddressAccessByYear(Convert.ToInt32(par), 0));
            }
            catch (Exception err)
            {
                Logger.Write(err.Message);
                Logger.Write(err.StackTrace);

                System.Diagnostics.Debug.WriteLine(err.Message);
            }
        }
Esempio n. 2
0
        private void backgroundGrid2_DoWork(object sender, DoWorkEventArgs e)
        {
            try
            {
                string   par       = e.Argument.ToString();
                string[] items     = par.Split(new char[] { ';' });
                int      year      = Convert.ToInt32(items[0]);
                string   ipAddress = items[1];

                LogDataFacade facade = new LogDataFacade(_guid);
                _listIPAddressAccessYear = new List <DumpData>(facade.GetIPaddressAccessByYear(year, ipAddress));
            }
            catch (Exception err)
            {
                Logger.Write(err.Message);
                Logger.Write(err.StackTrace);

                System.Diagnostics.Debug.WriteLine(err.Message);
            }
        }