Example #1
0
        private void UpdateMonitorStatus()
        {
            bool state = EventWatcher.IsRunning();

            labelDetectionServiceRunning.ForeColor = state ? Color.ForestGreen : Color.Red;
            labelDetectionServiceRunning.Text      = "Event watcher is " + (state ? "running" : "not running");
            pictureBox3.Image = Bitmap.FromHicon(new Icon((state ? Constants.OK_ICON : Constants.NO_ICON), new Size(24, 24)).Handle);
        }