예제 #1
0
 void ReleaseDesignerOutlets()
 {
     if (PublisherView != null)
     {
         PublisherView.Dispose();
         PublisherView = null;
     }
     if (SubscriberView != null)
     {
         SubscriberView.Dispose();
         SubscriberView = null;
     }
 }
예제 #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;
            }
        }