예제 #1
0
        partial void OnAttrToReturnRemove(NSObject sender)
        {
            nint row = AttrToReturnTableView.SelectedRow;

            if (row >= (nint)0)
            {
                _attrToReturnDs.attrList.RemoveAt((int)row);
                AttrToReturnTableView.ReloadData();
            }
        }
예제 #2
0
        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();
            }
        }
예제 #3
0
 partial void OnAttrToReturnRemoveAll(NSObject sender)
 {
     _attrToReturnDs.attrList.Clear();
     AttrToReturnTableView.ReloadData();
 }
예제 #4
0
 partial void OnAttrToReturnAdd(NSObject sender)
 {
     _attrToReturnDs.attrList.Add(AttrToReturnComboBox.SelectedValue.ToString());
     AttrToReturnTableView.ReloadData();
 }