123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- 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 ButtonUpperArrow:ButtonExpand
- {
- public ButtonUpperArrow()
- : base(LYFZ.ComponentLibrary.GetUIResources.btn_UP)
- {
- this.BackImg = LYFZ.ComponentLibrary.GetUIResources.btn_UP;
- this.IsShowText = false;
- this.Width = 26;
- this.Height = 26;
- this.Click += ButtonUpperArrow_Click;
- }
- void ButtonUpperArrow_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 = false;
- [DescriptionAttribute("设置方向"), CategoryAttribute("组件扩展属性")]
- public bool IsDown
- {
- get { return isDown; }
- set
- {
- isDown = value;
- ButtonUpperArrow_Click(null, null);
- Invalidate(false);
- }
- }
- }
- }
|