Пример #1
0
 public FilterControl()
 {
     _filter = new FilterModel();
     this.FieldList = new List<string>();
     InitializeComponent();
 }
Пример #2
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (String.IsNullOrWhiteSpace(txtTransformName.Text))
            {
                MessageBox.Show("Transform ismi giriniz", "", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            this.Transform.Operations = this.OperationList.ToArray().ToList();

            this.Transform.Filters.Clear();
            foreach (ViewColumnFilterInfo filterInfo in gView.ActiveFilter)
            {
                filterInfo.GetType();
                var filter = new FilterModel
                    {
                        FieldName = filterInfo.Column.FieldName,
                        FilterType = FilterTypeEnum.Equals,
                        Value = filterInfo.Filter.Value
                    };
                this.Transform.Filters.Add(filter);
            }
            //this.Filters = FilterModel.Parse(gView.ActiveFilter);

            this.Transform.Name = txtTransformName.Text;

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
Пример #3
0
 private void setFilter()
 {
     if (this.DesignMode)
         return;
     _filter = new FilterModel
         {
             FieldName = cmbFieldName.SelectedItem.ToString(),
             FilterType = cmbFilterType.SelectedItem.ToString() == "Eşitlik" ? FilterTypeEnum.Equals : FilterTypeEnum.Aralık,
             Value = txtValue.Text
         };
 }