12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using System.Windows.Forms;
- using System.IO;
- using System.Drawing;
- using System.Drawing.Drawing2D;
- using System.ComponentModel;
- namespace LYFZ.ComponentLibrary
- {
- public class ButtonDownArrow:ButtonExpand
- {
- public ButtonDownArrow()
- : base(LYFZ.ComponentLibrary.GetUIResources.btn_down)
- {
- this.BackImg = LYFZ.ComponentLibrary.GetUIResources.btn_down;
- this.IsShowText = false;
- this.Width = 26;
- this.Height = 26;
- this.Click += ButtonDownArrow_Click;
- }
- void ButtonDownArrow_Click(object sender, EventArgs e)
- {
- IsCustomBackImg = true;
-
- if (IsDown)
- {
- this.BackImg = LYFZ.ComponentLibrary.GetUIResources.btn_down;
- }
- else {
- this.BackImg = LYFZ.ComponentLibrary.GetUIResources.btn_UP;
- }
-
- }
- bool isDown = true;
- [DescriptionAttribute("设置方向"), CategoryAttribute("组件扩展属性")]
- public bool IsDown
- {
- get { return isDown; }
- set
- {
- isDown = value;
- ButtonDownArrow_Click(null, null);
- Invalidate(false); }
- }
- }
- }
|