public XmlDataFilter(RadDataFilter dataFilter) { this.Expression = dataFilter.Expression; this.AutoGenerateDescriptorItems = dataFilter.AutoGenerateDescriptorItems; this.SortFieldNames = dataFilter.SortFieldNames; this.AllowAdd = dataFilter.AllowAdd; this.AllowRemove = dataFilter.AllowRemove; this.AllowDragDrop = dataFilter.AllowDragDrop; this.AllowDrop = dataFilter.AllowDrop; this.BackColor = dataFilter.BackColor; this.CheckBoxes = dataFilter.CheckBoxes; this.MultiSelect = dataFilter.MultiSelect; this.ItemHeight = dataFilter.ItemHeight; this.LineColor = dataFilter.LineColor; this.LineStyle = dataFilter.LineStyle; this.PathSeparator = dataFilter.PathSeparator; this.ShowLines = dataFilter.ShowLines; this.ShowExpandCollapse = dataFilter.ShowExpandCollapse; this.ShowRootLines = dataFilter.ShowRootLines; this.ThemeClassName = dataFilter.ThemeClassName; this.ThemeName = dataFilter.ThemeName; this.TreeIndent = dataFilter.TreeIndent; this.LabelEdit = dataFilter.AllowEdit; this.ExpandAnimation = dataFilter.ExpandAnimation; this.AllowArbitraryItemHeight = dataFilter.AllowArbitraryItemHeight; this.SpacingBetweenNodes = dataFilter.SpacingBetweenNodes; this.RightToLeft = dataFilter.RightToLeft; }
public void Deserialize(RadDataFilter dataFilter) { if (dataFilter == null) { return; } dataFilter.BeginUpdate(); dataFilter.Expression = this.Expression; dataFilter.AutoGenerateDescriptorItems = this.AutoGenerateDescriptorItems; dataFilter.SortFieldNames = this.SortFieldNames; dataFilter.AllowAdd = this.AllowAdd; dataFilter.AllowRemove = this.AllowRemove; dataFilter.AllowDragDrop = this.AllowDragDrop; dataFilter.AllowDrop = this.AllowDrop; dataFilter.BackColor = this.BackColor; dataFilter.CheckBoxes = this.CheckBoxes; dataFilter.MultiSelect = this.MultiSelect; dataFilter.ItemHeight = this.ItemHeight; dataFilter.AllowEdit = this.LabelEdit; dataFilter.LineColor = this.LineColor; dataFilter.LineStyle = this.LineStyle; dataFilter.PathSeparator = this.PathSeparator; dataFilter.ShowLines = this.ShowLines; dataFilter.ShowExpandCollapse = this.ShowExpandCollapse; dataFilter.ShowRootLines = this.ShowRootLines; dataFilter.ThemeClassName = this.ThemeClassName; dataFilter.ThemeName = this.ThemeName; dataFilter.TreeIndent = this.TreeIndent; dataFilter.ExpandAnimation = this.ExpandAnimation; dataFilter.AllowArbitraryItemHeight = this.AllowArbitraryItemHeight; dataFilter.SpacingBetweenNodes = this.SpacingBetweenNodes; dataFilter.RightToLeft = this.RightToLeft; dataFilter.EndUpdate(); }
private void InitializeComponent() { this.radDataFilter1 = new RadDataFilter(); this.radButtonOK = new RadButton(); this.radButtonCancel = new RadButton(); this.radButtonApply = new RadButton(); this.radDataFilter1.BeginInit(); this.radButtonOK.BeginInit(); this.radButtonCancel.BeginInit(); this.radButtonApply.BeginInit(); this.BeginInit(); this.SuspendLayout(); this.radDataFilter1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.radDataFilter1.Location = new Point(4, 4); this.radDataFilter1.Name = "radDataFilter1"; this.radDataFilter1.Size = new Size(434, 184); this.radDataFilter1.TabIndex = 0; this.radDataFilter1.Text = "radDataFilter1"; this.radButtonOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.radButtonOK.Location = new Point(160, 192); this.radButtonOK.Name = "radButtonOK"; this.radButtonOK.Size = new Size(90, 24); this.radButtonOK.TabIndex = 1; this.radButtonOK.Text = "OK"; this.radButtonOK.Click += new EventHandler(this.OnOKButtonClick); this.radButtonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.radButtonCancel.Location = new Point(254, 192); this.radButtonCancel.Name = "radButtonCancel"; this.radButtonCancel.Size = new Size(90, 24); this.radButtonCancel.TabIndex = 2; this.radButtonCancel.Text = "Cancel"; this.radButtonCancel.Click += new EventHandler(this.OnCancelButtonClick); this.radButtonApply.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.radButtonApply.Location = new Point(348, 192); this.radButtonApply.Name = "radButtonApply"; this.radButtonApply.Size = new Size(90, 24); this.radButtonApply.TabIndex = 2; this.radButtonApply.Text = "Apply"; this.radButtonApply.Click += new EventHandler(this.OnApplyButtonClick); this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.None; this.ClientSize = new Size(442, 220); this.Controls.Add((Control)this.radButtonApply); this.Controls.Add((Control)this.radButtonCancel); this.Controls.Add((Control)this.radButtonOK); this.Controls.Add((Control)this.radDataFilter1); this.Name = nameof(RadDataFilterDialog); this.RootElement.ApplyShapeToControl = true; this.ShowIcon = false; this.Text = "Form1"; this.radDataFilter1.EndInit(); this.radButtonOK.EndInit(); this.radButtonCancel.EndInit(); this.radButtonApply.EndInit(); this.EndInit(); this.ResumeLayout(false); }
private void InitializeComponent() { this.radLabelFormTitle = new RadLabel(); this.radButtonOK = new RadButton(); this.radButtonCancel = new RadButton(); this.radDataFilter1 = new RadDataFilter(); this.radLabelFormTitle.BeginInit(); this.radButtonOK.BeginInit(); this.radButtonCancel.BeginInit(); this.radDataFilter1.BeginInit(); this.BeginInit(); this.SuspendLayout(); this.radLabelFormTitle.Location = new Point(4, 12); this.radLabelFormTitle.Name = "radLabelFormTitle"; this.radLabelFormTitle.Size = new Size(96, 18); this.radLabelFormTitle.TabIndex = 2; this.radLabelFormTitle.Text = "Show rows where:"; this.radButtonOK.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.radButtonOK.DialogResult = DialogResult.OK; this.radButtonOK.Location = new Point(288, 214); this.radButtonOK.Name = "radButtonOK"; this.radButtonOK.Size = new Size(75, 23); this.radButtonOK.TabIndex = 6; this.radButtonOK.Text = "OK"; this.radButtonOK.Click += new EventHandler(this.radButtonOK_Click); this.radButtonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; this.radButtonCancel.DialogResult = DialogResult.Cancel; this.radButtonCancel.Location = new Point(372, 214); this.radButtonCancel.Name = "radButtonCancel"; this.radButtonCancel.Size = new Size(75, 23); this.radButtonCancel.TabIndex = 7; this.radButtonCancel.Text = "Cancel"; this.radButtonCancel.Click += new EventHandler(this.radButtonCancel_Click); this.radDataFilter1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; this.radDataFilter1.Location = new Point(4, 36); this.radDataFilter1.Name = "radDataFilter1"; this.radDataFilter1.Size = new Size(443, 172); this.radDataFilter1.TabIndex = 10; this.radDataFilter1.Text = "radDataFilter1"; this.AcceptButton = (IButtonControl)this.radButtonOK; this.AutoScaleDimensions = new SizeF(6f, 13f); this.AutoScaleMode = AutoScaleMode.None; this.CancelButton = (IButtonControl)this.radButtonCancel; this.ClientSize = new Size(452, 240); this.Controls.Add((Control)this.radDataFilter1); this.Controls.Add((Control)this.radButtonCancel); this.Controls.Add((Control)this.radButtonOK); this.Controls.Add((Control)this.radLabelFormTitle); this.FormBorderStyle = FormBorderStyle.SizableToolWindow; this.MaximizeBox = false; this.MinimumSize = new Size(410, 220); this.Name = nameof(CompositeDataFilterForm); this.RootElement.ApplyShapeToControl = true; this.StartPosition = FormStartPosition.CenterParent; this.Text = "ComplexFilterForm"; this.radLabelFormTitle.EndInit(); this.radButtonOK.EndInit(); this.radButtonCancel.EndInit(); this.radDataFilter1.EndInit(); this.EndInit(); this.ResumeLayout(false); this.PerformLayout(); }