protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing)
                {
                    if (components != null)
                    {
                        components.Dispose();
                    }

                    windowList.Dispose();
                    liveBox.Dispose();
                    munisToolBar.Dispose();
                    currentViewDevice?.Dispose();
                    controlParser.Dispose();
                    statusSlider.Dispose();
                    WatchdogInstance.Watchdog.StatusChanged -= Watchdog_StatusChanged;
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }
Exemple #2
0
		void ReleaseDesignerOutlets ()
		{
			if (AddressLabel != null) {
				AddressLabel.Dispose ();
				AddressLabel = null;
			}

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

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

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

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

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

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

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

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

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

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

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

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

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