Esempio n. 1
0
 public FilterControl()
 {
     _filter = new FilterModel();
     this.FieldList = new List<string>();
     InitializeComponent();
 }
Esempio n. 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();
        }
Esempio n. 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
         };
 }