Esempio n. 1
0
        public static void AddLog(TrafficInfo log)
        {
            try
            {
                _TrafficLogs.Add(log);

                string[] str = new string[6];
                str[0] = LogCount.ToString();
                str[1] = log.Id.ToString();
                str[2] = log.type;
                str[3] = log.Length.ToString();
                str[4] = log.RemoteAddress;
                str[5] = log.Date;
                ListViewItem itm = new ListViewItem(str, 0);
                settings.MainForm.listView2.Items.Add(itm);
            }catch{}
        }
Esempio n. 2
0
        public static void AddLog(TrafficInfo log)
        {
            try
            {
                _TrafficLogs.Add(log);

                string[] str = new string[6];
                str[0] = LogCount.ToString();
                str[1] = log.Id.ToString();
                str[2] = log.type;
                str[3] = log.Length.ToString();
                str[4] = log.RemoteAddress;
                str[5] = log.Date;
                ListViewItem itm = new ListViewItem(str, 0);
                settings.MainForm.listView2.Items.Add(itm);
            }catch {}
        }