示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (LastSentLabel != null)
            {
                LastSentLabel.Dispose();
                LastSentLabel = null;
            }

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

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

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

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

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

            if (VersionLabel != null)
            {
                VersionLabel.Dispose();
                VersionLabel = null;
            }
        }
示例#2
0
        void ReleaseDesignerOutlets()
        {
            if (CaptionText != null)
            {
                CaptionText.Dispose();
                CaptionText = null;
            }

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

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

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

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

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