public CustomizeCellEventArgs(Resco.Controls.AdvancedList.Cell cell, object data, Row dataRow) { this.m_cell = cell.Clone(); this.m_cell.Owner = cell.Owner; this.m_data = data; this.m_dataRow = dataRow; }
public CustomizeCellEventArgs(Resco.Controls.AdvancedComboBox.Cell cell, object data, ListItem dataItem) { this.m_cell = cell.Clone(); this.m_cell.Owner = cell.Owner; this.m_data = data; this.m_dataItem = dataItem; }
public CustomizeCellEventArgs(Resco.Controls.AdvancedTree.Cell cell, object data, Resco.Controls.AdvancedTree.Node node) { this.m_cell = cell.Clone(); this.m_cell.Owner = cell.Owner; this.m_data = data; this.m_node = node; }
public ScrollbarWrapper(Control scrollbar, Resco.Controls.AdvancedList.ScrollOrientation scrollOrientation) { this.m_scrollBar = scrollbar; this.m_scrollOrientation = scrollOrientation; this.m_onValueChanged = new EventHandler(this.OnValueChanged); this.m_onResize = new EventHandler(this.OnResize); }
public NodeCancelEventArgs(Resco.Controls.AdvancedTree.Node node, int index, int offset) { this.Node = node; this.NodeIndex = index; this.Offset = offset; base.Cancel = false; }
public GradientColor(Color startColor, Color middleColor1, Color middleColor2, Color endColor, Resco.Controls.AdvancedComboBox.FillDirection fillDirection) { this.m_startColor = startColor; this.m_endColor = endColor; this.m_middleColor1 = middleColor1; this.m_middleColor2 = middleColor2; this.m_fillDirection = fillDirection; }
public Row(int templateIndex, int selectedTemplateIndex, ICollection dataList, Resco.Controls.AdvancedList.Mapping fieldNames) : this(templateIndex, selectedTemplateIndex, -1, -1) { int num = Math.Max(fieldNames.FieldCount, dataList.Count); this.m_htMap = fieldNames; this.m_oData = new object[num]; dataList.CopyTo(this.m_oData, 0); }
public ListItem(int ti, int sti, int ati, int tbti, ICollection dataList, Resco.Controls.AdvancedComboBox.Mapping fieldNames) : this(ti, sti, ati, tbti) { int num = Math.Max(fieldNames.FieldCount, dataList.Count); this.m_htMap = fieldNames; this.m_oData = new object[num]; dataList.CopyTo(this.m_oData, 0); }
public GradientColor(Color startColor, Color endColor, Resco.Controls.AdvancedTree.FillDirection fillDirection) { this.m_startColor = startColor; this.m_middleColor1 = Color.Transparent; this.m_middleColor2 = Color.Transparent; this.m_endColor = endColor; this.m_fillDirection = fillDirection; }
public GradientColor(Color startColor, Color endColor, Resco.Controls.ScrollBar.FillDirection fillDirection) { this.m_startColor = startColor; this.m_endColor = endColor; this.m_middleColor1 = Color.Transparent; this.m_middleColor2 = Color.Transparent; this.m_middleColor1Offset = this.m_middleColor2Offset = 50; this.m_fillDirection = fillDirection; }
public GradientColor(Color startColor, Color middleColor1, Color middleColor2, Color endColor, int middleColor1Offset, int middleColor2Offset, Resco.Controls.ScrollBar.FillDirection fillDirection) { this.m_startColor = startColor; this.m_endColor = endColor; this.m_middleColor1 = middleColor1; this.m_middleColor2 = middleColor2; this.m_middleColor1Offset = middleColor1Offset; this.m_middleColor2Offset = middleColor2Offset; this.m_fillDirection = fillDirection; }
public MaskedTextBox(Resco.Controls.MaskedTextBox.MaskedTextProvider maskedTextProvider) { this.m_wndproc = IntPtr.Zero; this.m_wndprocReal = IntPtr.Zero; this.m_provider = maskedTextProvider; this.m_provider.TextChanged += new EventHandler(this.MaskProviderTextChanged); this.m_caret = 0; this.m_internalTextSet = false; this.m_beepOnError = false; this.m_hidePromptOnLeave = false; base.Multiline = false; this.m_validatingType = null; }
public CellEventArgs(ListItem i, Resco.Controls.AdvancedComboBox.Cell c, int ii, int ci, int yoff) : base(i, ii, yoff) { this.CellIndex = ci; this.Cell = c; if (c != null) { this.CellData = c[i, ci]; } else { this.CellData = null; } }
public CellEventArgs(Row r, Resco.Controls.AdvancedList.Cell c, int ri, int ci, int yoff) : base(r, ri, yoff) { this.CellIndex = ci; this.Cell = c; if (c != null) { this.CellData = c[r, ci]; } else { this.CellData = null; } }
public NodeAddingEventArgs(Resco.Controls.AdvancedTree.Node parentNode, int nodeIndex) { this.m_nNodeIndex = nodeIndex; this.m_parentNode = parentNode; this.m_node = null; if (this.m_parentNode != null) { this.m_level = this.m_parentNode.Level + 1; } else { this.m_level = 0; } }
public BoundNode(int templateIndex, int selectedTemplateIndex, System.Data.DataRow row, Resco.Controls.AdvancedTree.Mapping fieldNames) : base(templateIndex, selectedTemplateIndex, fieldNames) { this.m_data = row; this.m_properties = ((ITypedList) row.Table.DefaultView).GetItemProperties(null); try { int index = row.Table.Rows.IndexOf(row); row.Table.DefaultView[index].PropertyChanged+=(new PropertyChangedEventHandler(this.OnBindPropertyChanged)); } catch { } }
public ToolBar(Resco.Controls.CommonControls.TabControl aParent) { if (aParent == null) { throw new UnauthorizedAccessException("Error: This control is a part of the TabControl. Please use ToolbarControl in your application."); } base.Height = 0x1a; this.Dock = DockStyle.Top; this.m_ToolbarControl = new ToolbarControl(); this.m_ToolbarControl.Height = 0x1a; this.m_ToolbarControl.Dock = DockStyle.Fill; this.m_ToolbarControl.SelectionChanged += new EventHandler(this.ToolbarControl_SelectionChanged); this.m_ToolbarControl.ItemEntered += new EventHandler(this.ToolbarControl_ItemEntered); base.Controls.Add(this.m_ToolbarControl); }
public void Draw(Graphics gr, Rectangle drawRect, Resco.Controls.ScrollBar.ScrollBar.ScrollBarOrientation orientation) { if (this._borderStyle != ScrollBarBorderStyle.None) { Resco.Controls.ScrollBar.ScrollBar.DoDrawBorder(gr, this._borderStyle, this._borderColor, drawRect, Resco.Controls.ScrollBar.ScrollBar.BorderSide.All, System.Drawing.Color.Transparent); drawRect.Inflate(-1, -1); } if ((drawRect.Width > 0) && (drawRect.Height > 0)) { Region clip = gr.Clip; Region helperRegion = Resco.Controls.ScrollBar.ScrollBar.GetHelperRegion(); helperRegion.MakeEmpty(); helperRegion.Union(drawRect); gr.Clip = helperRegion; if (this._image != null) { if (this._imageLayout == ScrollBarThumbImageLayout.Tile) { int width = drawRect.Width; int height = drawRect.Height; Rectangle destRect = new Rectangle(drawRect.Left, drawRect.Top, this._image.Width, this._image.Height); for (int i = 0; i < height; i += this._image.Height) { for (int j = 0; j < width; j += this._image.Width) { gr.DrawImage(this._image, destRect, 0, 0, this._image.Width, this._image.Height, GraphicsUnit.Pixel, this._imageAttributes); destRect.X += this._image.Width; } destRect.X = drawRect.Left; destRect.Y += this._image.Height; } } else { Rectangle rectangle2; if (this._imageLayout == ScrollBarThumbImageLayout.Center) { rectangle2 = new Rectangle(drawRect.Left + ((drawRect.Width - this._image.Width) / 2), drawRect.Top + ((drawRect.Height - this._image.Height) / 2), this._image.Width, this._image.Height); } else { rectangle2 = drawRect; } gr.DrawImage(this._image, rectangle2, 0, 0, this._image.Width, this._image.Height, GraphicsUnit.Pixel, this._imageAttributes); } } else if (this._gradientColor.CanDraw()) { this._gradientColor.DrawGradient(gr, drawRect); } else { gr.FillRectangle(Resco.Controls.ScrollBar.ScrollBar.GetBrush(this._color), drawRect); } this.DoDrawGrip(gr, drawRect, orientation); gr.Clip = clip; } }
private void DoDrawGrip(Graphics gr, Rectangle drawRect, Resco.Controls.ScrollBar.ScrollBar.ScrollBarOrientation orientation) { if (this._gripStyle != ScrollBarThumbGripStyle.None) { if (this._gripStyle == ScrollBarThumbGripStyle.Image) { if (this._gripImage != null) { Rectangle destRect = new Rectangle(drawRect.Left + ((drawRect.Width - this._gripImage.Width) / 2), drawRect.Top + ((drawRect.Height - this._gripImage.Height) / 2), this._gripImage.Width, this._gripImage.Height); gr.DrawImage(this._gripImage, destRect, 0, 0, this._gripImage.Width, this._gripImage.Height, GraphicsUnit.Pixel, this._gripImageAttributes); } } else if (this._gripLines > 0) { drawRect.Inflate(-1, -1); if ((drawRect.Width > 0) && (drawRect.Height > 0)) { int width = (this._gripLines * 2) - 1; if (this._gripStyle == ScrollBarThumbGripStyle.Lines) { int left = drawRect.Left; int top = drawRect.Top; int num4 = 0; int num5 = 0; int num6 = 0; int num7 = 0; if (orientation == Resco.Controls.ScrollBar.ScrollBar.ScrollBarOrientation.Horizontal) { if (width < drawRect.Width) { left += (drawRect.Width - width) / 2; } else { width = drawRect.Width; } num4 = 2; num7 = drawRect.Height - 1; } else { if (width < drawRect.Height) { top += (drawRect.Height - width) / 2; } else { width = drawRect.Height; } num5 = 2; num6 = drawRect.Width - 1; } Pen pen = Resco.Controls.ScrollBar.ScrollBar.GetPen(this._gripColor); for (int i = 0; i < width; i += 2) { gr.DrawLine(pen, left, top, left + num6, top + num7); left += num4; top += num5; } } else if (this._gripStyle == ScrollBarThumbGripStyle.Dots) { int num9 = 0; int height = 0; int num12 = drawRect.Left; int y = drawRect.Top; if (orientation == Resco.Controls.ScrollBar.ScrollBar.ScrollBarOrientation.Horizontal) { if (width < drawRect.Width) { num12 += (drawRect.Width - width) / 2; } else { width = drawRect.Width; } num9 = width; height = drawRect.Height; } else { if (width < drawRect.Height) { y += (drawRect.Height - width) / 2; } else { width = drawRect.Height; } num9 = drawRect.Width; height = width; } for (int j = 0; j < height; j += 2) { int x = num12; for (int k = 0; k < num9; k += 2) { Resco.Controls.ScrollBar.ScrollBar.DrawPixel(gr, this._gripColor, x, y); x += 2; } y += 2; } } } } } }
public void Draw(Graphics gr, Rectangle drawRect, Rectangle visibleRect, Rectangle trackRect, ScrollBarTrackType type, Resco.Controls.ScrollBar.ScrollBar.ScrollBarOrientation orientation, System.Drawing.Color parentColor) { if (this._borderStyle != ScrollBarBorderStyle.None) { Resco.Controls.ScrollBar.ScrollBar.BorderSide all = Resco.Controls.ScrollBar.ScrollBar.BorderSide.All; if (orientation == Resco.Controls.ScrollBar.ScrollBar.ScrollBarOrientation.Horizontal) { //all &= ~((type == ScrollBarTrackType.Low) ? 4 : 1); int temp = (int)all; temp&= ~((type == ScrollBarTrackType.Low) ? 4 : 1); all = (Resco.Controls.ScrollBar.ScrollBar.BorderSide)temp; } else { //all &= ~((type == ScrollBarTrackType.Low) ? 8 : 2); int temp = (int)all; temp &= ~((type == ScrollBarTrackType.Low) ? 8 : 2); all = (Resco.Controls.ScrollBar.ScrollBar.BorderSide)temp; } Resco.Controls.ScrollBar.ScrollBar.DoDrawBorder(gr, this._borderStyle, this._borderColor, drawRect, all, parentColor); drawRect.Inflate(-1, -1); if (orientation == Resco.Controls.ScrollBar.ScrollBar.ScrollBarOrientation.Horizontal) { drawRect.Width++; if (type == ScrollBarTrackType.High) { drawRect.X--; } } else { drawRect.Height++; if (type == ScrollBarTrackType.High) { drawRect.Y--; } } } if ((this._image != null) || this._gradientColor.CanDraw()) { Rectangle destRect = drawRect; Region clip = null; if (this._trackLayout == ScrollBarTrackLayout.FixedToTrack) { destRect = trackRect; clip = gr.Clip; Region helperRegion = Resco.Controls.ScrollBar.ScrollBar.GetHelperRegion(); helperRegion.MakeEmpty(); helperRegion.Union(drawRect); gr.Clip = helperRegion; } if (this._image != null) { gr.DrawImage(this._image, destRect, new Rectangle(0, 0, this._image.Width, this._image.Height), GraphicsUnit.Pixel); } else { this._gradientColor.DrawGradient(gr, destRect); } if (this._trackLayout == ScrollBarTrackLayout.FixedToTrack) { gr.Clip = clip; } } else { gr.FillRectangle(Resco.Controls.ScrollBar.ScrollBar.GetBrush(this._color), drawRect); } }
public GradientColor(Resco.Controls.ScrollBar.FillDirection fillDirection) : this() { this.m_fillDirection = fillDirection; }
public ItemEnteredEventArgs(Resco.Controls.AdvancedComboBox.ListItem i, int iItemIndex) { this.m_item = i; this.m_iItemIndex = iItemIndex; }
public GradientColor(Color startColor, Color endColor, Resco.Controls.DetailView.FillDirection fillDirection) { this.m_startColor = startColor; this.m_endColor = endColor; this.m_fillDirection = fillDirection; }
internal ItemBindingException(Resco.Controls.DetailView.Item item, object value, Exception ex, Resco.Controls.DetailView.DetailView.ItemBindingException next) : base("Error binding item " + item.Name, ex) { this.Next = next; this.BoundValue = value; }
public ItemEventArgs(Resco.Controls.AdvancedComboBox.ListItem i, int index, int yoff) { this.ListItem = i; this.ItemIndex = index; this.Offset = yoff; }
private StringFormat GetStringFormat(Resco.Controls.CommonControls.Alignment anAlignment) { StringFormat format = new StringFormat(); switch (anAlignment) { case Resco.Controls.CommonControls.Alignment.TopLeft: format.LineAlignment = StringAlignment.Near; format.Alignment = StringAlignment.Near; return format; case Resco.Controls.CommonControls.Alignment.TopCenter: format.LineAlignment = StringAlignment.Near; format.Alignment = StringAlignment.Center; return format; case Resco.Controls.CommonControls.Alignment.TopRight: format.LineAlignment = StringAlignment.Near; format.Alignment = StringAlignment.Far; return format; case Resco.Controls.CommonControls.Alignment.MiddleLeft: format.LineAlignment = StringAlignment.Center; format.Alignment = StringAlignment.Near; return format; case Resco.Controls.CommonControls.Alignment.MiddleCenter: format.LineAlignment = StringAlignment.Center; format.Alignment = StringAlignment.Center; return format; case Resco.Controls.CommonControls.Alignment.MiddleRight: format.LineAlignment = StringAlignment.Center; format.Alignment = StringAlignment.Far; return format; case Resco.Controls.CommonControls.Alignment.BottomLeft: format.LineAlignment = StringAlignment.Far; format.Alignment = StringAlignment.Near; return format; case Resco.Controls.CommonControls.Alignment.BottomCenter: format.LineAlignment = StringAlignment.Far; format.Alignment = StringAlignment.Center; return format; case Resco.Controls.CommonControls.Alignment.BottomRight: format.LineAlignment = StringAlignment.Far; format.Alignment = StringAlignment.Far; return format; } return format; }
protected void GetLocationByAlignment(Resco.Controls.CommonControls.Alignment anAlignment, Rectangle aClientRect, SizeF aControlSize, out int aTextLeft, out int aTextTop) { int num = 2; int num2 = 2; switch (anAlignment) { case Resco.Controls.CommonControls.Alignment.TopLeft: aTextTop = 1; aTextLeft = 1; return; case Resco.Controls.CommonControls.Alignment.TopCenter: aTextTop = 1; aTextLeft = (aClientRect.Width - ((int) aControlSize.Width)) / 2; return; case Resco.Controls.CommonControls.Alignment.TopRight: aTextTop = 1; aTextLeft = (aClientRect.Width - ((int) aControlSize.Width)) - num; return; case Resco.Controls.CommonControls.Alignment.MiddleLeft: aTextTop = (aClientRect.Height - ((int) aControlSize.Height)) / 2; aTextLeft = 1; return; case Resco.Controls.CommonControls.Alignment.MiddleCenter: aTextLeft = (aClientRect.Width - ((int) aControlSize.Width)) / 2; aTextTop = (aClientRect.Height - ((int) aControlSize.Height)) / 2; return; case Resco.Controls.CommonControls.Alignment.MiddleRight: aTextTop = (aClientRect.Height - ((int) aControlSize.Height)) / 2; aTextLeft = (aClientRect.Width - ((int) aControlSize.Width)) - num; return; case Resco.Controls.CommonControls.Alignment.BottomLeft: aTextTop = (aClientRect.Height - ((int) aControlSize.Height)) - num2; aTextLeft = 1; return; case Resco.Controls.CommonControls.Alignment.BottomCenter: aTextTop = (aClientRect.Height - ((int) aControlSize.Height)) - num2; aTextLeft = (aClientRect.Width - ((int) aControlSize.Width)) / 2; return; case Resco.Controls.CommonControls.Alignment.BottomRight: aTextTop = (aClientRect.Height - ((int) aControlSize.Height)) - 2; aTextLeft = (aClientRect.Width - ((int) aControlSize.Width)) - num; return; } aTextLeft = (aClientRect.Width - ((int) aControlSize.Width)) / 2; aTextTop = (aClientRect.Height - ((int) aControlSize.Height)) / 2; }
protected void GetImageLocation(Resco.Controls.CommonControls.Alignment anAlignment, Rectangle aClientRect, Size anImgSize, out int imageLeft, out int imageTop) { this.GetLocationByAlignment(anAlignment, aClientRect, new SizeF((float) anImgSize.Width, (float) anImgSize.Height), out imageLeft, out imageTop); }
internal RowCollection(Resco.Controls.AdvancedList.AdvancedList parent) { this.m_pParent = parent; }
public int RemoveByMapping(Resco.Controls.AdvancedList.Mapping fieldNames) { int num = -1; for (int i = base.List.Count - 1; i >= 0; i--) { Row row = (Row) base.InnerList[i]; if (row.FieldNames == fieldNames) { base.List.RemoveAt(i); num = i; } } return num; }