Пример #1
0
        void ReleaseDesignerOutlets()
        {
            if (AddBarButton != null)
            {
                AddBarButton.Dispose();
                AddBarButton = null;
            }

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

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

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

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

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

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

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

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