Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="FilterDescriptor"/> class.
 /// </summary>
 /// <param name="logicalOperator">The logical operator.</param>
 /// <param name="filterDescriptors">The filter descriptors.</param>
 public FilterDescriptor(LogicalOperators logicalOperator, IList<IFilterDescriptor> filterDescriptors )
 {
     LogicalOperator = logicalOperator;
     FilterDescriptors = filterDescriptors;
 }
 /// <summary> 
 /// Erforderliche Methode für die Designerunterstützung. 
 /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this._grid = new GridExtensions.ExtendedDataGrid();
     this._extender = new GridExtensions.DataGridFilterExtender(this.components);
     ((System.ComponentModel.ISupportInitialize)(this._grid)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this._extender)).BeginInit();
     this.SuspendLayout();
     //
     // _grid
     //
     this._grid.AutoCreateTableStyles = false;
     this._grid.DataMember = "";
     this._grid.HeaderForeColor = System.Drawing.SystemColors.ControlText;
     this._grid.Location = new System.Drawing.Point(0, 24);
     this._grid.Name = "_grid";
     this._grid.Size = new System.Drawing.Size(496, 352);
     this._grid.TabIndex = 0;
     this._grid.MouseDown += new System.Windows.Forms.MouseEventHandler(this.OnMouseDown);
     this._grid.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OnKeyDown);
     this._grid.MouseMove += new System.Windows.Forms.MouseEventHandler(this.OnMouseMove);
     this._grid.MouseEnter += new System.EventHandler(this.OnMouseEnter);
     this._grid.MouseHover += new System.EventHandler(this.OnMouseHover);
     this._grid.MouseLeave += new System.EventHandler(this.OnMouseLeave);
     this._grid.KeyUp += new System.Windows.Forms.KeyEventHandler(this.OnKeyUp);
     this._grid.MouseUp += new System.Windows.Forms.MouseEventHandler(this.OnMouseUp);
     this._grid.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OnKeyPress);
     this._grid.DoubleClick += new EventHandler(this.OnDoubleClick);
     //
     // _extender
     //
     this._extender.AutoAdjustGridPosition = false;
     this._extender.ConsoleErrorMode = GridExtensions.FilterErrorModes.Off;
     this._extender.DataGrid = this._grid;
     this._extender.FilterBoxPosition = GridExtensions.FilterPosition.Top;
     this._extender.FilterText = "Filter";
     this._extender.FilterTextVisible = true;
     this._extender.MessageErrorMode = GridExtensions.FilterErrorModes.General;
     this._extender.Operator = GridExtensions.LogicalOperators.And;
     this._extender.GridFilterBound += new GridExtensions.GridFilterEventHandler(this.OnGridFilterBound);
     this._extender.GridFilterUnbound += new GridExtensions.GridFilterEventHandler(this.OnGridFilterUnbound);
     this._extender.AfterFiltersChanged += new System.EventHandler(this.OnAfterFiltersChanged);
     this._extender.BeforeFiltersChanging += new System.EventHandler(this.OnBeforeFiltersChanging);
     //
     // FilterableDataGrid
     //
     this.Controls.Add(this._grid);
     this.Name = "FilterableDataGrid";
     this.Size = new System.Drawing.Size(496, 376);
     ((System.ComponentModel.ISupportInitialize)(this._grid)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this._extender)).EndInit();
     this.ResumeLayout(false);
 }
Example #3
0
 public ValidateAttribute(LogicalOperators op, params object[] values)
 {
     Op = op;
     Value = values ?? new[] {(object) null};
 }
 public void AddStatement(Statement statement, LogicalOperators logicalOperator)
 {
     _statementAndLogicalOperators.Add(statement, logicalOperator);
 }
Example #5
0
 public ValidateAttribute(LogicalOperators op, object value)
 {
     Op = op;
     Value = new [] {value};
 }