Ejemplo n.º 1
0
        private void SetSearchBoxVisibility()
        {
            if (_searchBoxFlag)
            {
                SearchQueryContainerView.RemoveFromSuperview();
                //SearchHorizontalSplitView.RemoveArrangedSubview(SearchQueryContainerView);
                _searchBoxFlag = false;
            }
            else
            {
                foreach (var item in SearchHorizontalSplitView.Subviews)
                {
                    //SearchHorizontalSplitView.RemoveArrangedSubview(item);//supported 10.11 onward
                    item.RemoveFromSuperview();
                }

                var size = SearchHorizontalSplitView.Frame.Size;
                SearchQueryContainerView.SetFrameSize(new CoreGraphics.CGSize(size.Width, 280));
                //SearchHorizontalSplitView.AddArrangedSubview(SearchQueryContainerView);
                SearchHorizontalSplitView.AddSubview(SearchQueryContainerView);
                SearchResultContainerView.SetFrameSize(new CoreGraphics.CGSize(size.Width, size.Height - 280));
                //SearchHorizontalSplitView.AddArrangedSubview(SearchResultContainerView);
                SearchHorizontalSplitView.AddSubview(SearchResultContainerView);
                _searchBoxFlag = true;
            }
        }
Ejemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (AttrToReturnComboBox != null)
            {
                AttrToReturnComboBox.Dispose();
                AttrToReturnComboBox = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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