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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Beispiel #2
0
        void ReleaseDesignerOutlets()
        {
            if (HangupButton != null)
            {
                HangupButton.Dispose();
                HangupButton = null;
            }

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

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

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

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

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