コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (BrowserToggle != null)
            {
                BrowserToggle.Dispose();
                BrowserToggle = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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