Beispiel #1
0
        public frmStopLight()
        {
            InitializeComponent();

            detector = new ConnectivityDetector();
            detector.Connectivity += new ConnectivityDetector.ConnectivityEventHandler(ConnectivityEvent);

            startTime = DateTime.Now;

            updateGui = new GuiUpdateHandler(UpdateGui);
        }
Beispiel #2
0
        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose( bool disposing )
        {
            if( disposing )
            {
                // Dispose detector before components, since detector updates UI
                if (detector != null)
                {
                    detector.Dispose();
                    detector = null;
                }

                if (components != null)
                {
                    components.Dispose();
                }
            }

            base.Dispose( disposing );
        }