Esempio n. 1
0
        public SnifferAppContext()
        {
            Application.ApplicationExit += OnApplicationExit;
            InitializeComponent();
            _trayIcon.Visible = true;

            _lög = new Lögger();
            _sniffer = new Sniffer(_lög);

            _lög.Lög(new LögEntry { Locked = false, Message = "Service started", Timestamp = DateTime.Now });
            _sniffer.StartSniffing();
        }
Esempio n. 2
0
        public SnifferAppContext()
        {
            Application.ApplicationExit += OnApplicationExit;
            InitializeComponent();
            _trayIcon.Visible = true;

            _lög     = new Lögger();
            _sniffer = new Sniffer(_lög);

            _lög.Lög(new LögEntry {
                Locked = false, Message = "Service started", Timestamp = DateTime.Now
            });
            _sniffer.StartSniffing();
        }