示例#1
0
        void ReleaseDesignerOutlets()
        {
            if (ButtonLoad != null)
            {
                ButtonLoad.Dispose();
                ButtonLoad = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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