コード例 #1
0
 void ReleaseDesignerOutlets()
 {
     if (ExplicitButton != null)
     {
         ExplicitButton.Dispose();
         ExplicitButton = null;
     }
     if (ImplicitButton != null)
     {
         ImplicitButton.Dispose();
         ImplicitButton = null;
     }
     if (TransitionButton != null)
     {
         TransitionButton.Dispose();
         TransitionButton = null;
     }
     if (ViewAnimationButton != null)
     {
         ViewAnimationButton.Dispose();
         ViewAnimationButton = null;
     }
     if (ViewTransitionButton != null)
     {
         ViewTransitionButton.Dispose();
         ViewTransitionButton = null;
     }
 }
        void ReleaseDesignerOutlets()
        {
            if (Category != null)
            {
                Category.Dispose();
                Category = null;
            }

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

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

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

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

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

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

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

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

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

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

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

            if (Webview != null)
            {
                Webview.Dispose();
                Webview = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (Category != null)
            {
                Category.Dispose();
                Category = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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