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();
        }
Exemple #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();
        }