partial void OnBfAddAction(NSObject sender) { if (!ValidateAdd()) { return; } _searchCondDs.condList.Add(new FilterDTO(BfAttributeComboBox.SelectedValue.ToString(), (Condition)(int)BfConditionComboBox.SelectedIndex, BfValueTextField.StringValue)); BfConditionsTableView.ReloadData(); }
partial void OnBfRemoveTableEntry(Foundation.NSObject sender) { nint row = BfConditionsTableView.SelectedRow; if (row >= (nint)0) { _searchCondDs.condList.RemoveAt((int)row); BfConditionsTableView.ReloadData(); } }
partial void OnBfMultipleValFromFile(NSObject sender) { ConditionValuesFromFileController cvffwc = new ConditionValuesFromFileController(_attrList); nint result = NSApplication.SharedApplication.RunModalForWindow(cvffwc.Window); if (result == (nint)VMIdentityConstants.DIALOGOK) { foreach (var item in cvffwc.ValuesList) { _searchCondDs.condList.Add(new FilterDTO(cvffwc.Attribute, cvffwc.Condition, item)); } BfConditionsTableView.ReloadData(); } }
private void BindData() { if (_qdto.GetType() == typeof(BuildQueryDTO)) { var dto = _qdto as BuildQueryDTO; SearchQueryTabView.SelectAt(0); SearchBaseTextField.StringValue = dto.SearchBase; SearchScopeComboBox.SelectItem((int)dto.SearchScope); BfOperatorComboBox.SelectItem((int)dto.Operator); BfAttributeComboBox.SelectItem(0); BfConditionComboBox.SelectItem(0); _searchCondDs.condList.Clear(); foreach (var item in dto.CondList) { _searchCondDs.condList.Add(new FilterDTO(item.Attribute, item.Condition, item.Value)); } BfConditionsTableView.ReloadData(); _attrToReturnDs.attrList.Clear(); foreach (var item in dto.AttrToReturn) { _attrToReturnDs.attrList.Add(item); } AttrToReturnTableView.ReloadData(); } else if (_qdto.GetType() == typeof(TextQueryDTO)) { var dto = _qdto as TextQueryDTO; SearchQueryTabView.SelectAt(1); SearchBaseTextField.StringValue = dto.SearchBase; SearchScopeComboBox.SelectItem((int)dto.SearchScope); TfSearchFilterTextView.Value = dto.GetFilterString(); _attrToReturnDs.attrList.Clear(); foreach (var item in dto.AttrToReturn) { _attrToReturnDs.attrList.Add(item); } AttrToReturnTableView.ReloadData(); } }
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; } }
partial void OnBfRemoveAllTableEntries(NSObject sender) { _searchCondDs.condList.Clear(); BfConditionsTableView.ReloadData(); }