12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- using System;
- using System.Windows.Forms;
- namespace PaintDotNet.CustomControl
- {
- public partial class InputMatControl : UserControl
- {
- //定义发布消息的事件
- public event EventHandler selectButtonClick; //使用默认的事件处理委托
- /// <summary>
- /// 参数的index
- /// </summary>
- public int paramIndex;
- ///// <summary> //111
- ///// 参数值改变
- ///// </summary>
- //public event EventHandler ValueChanged;
- public string TextValue
- {
- get
- {
- return this.textBox2.Text;
- }
- set
- {
- this.textBox2.Text = value;
- }
- }
- private void InitializeLanguageText()
- {
- this.button2.Text = PdnResources.GetString("Menu.MeasureAction.MeasureSelect.Text");
- }
- public InputMatControl()
- {
- InitializeComponent();
- InitializeLanguageText();
- }
- /// <summary>
- /// 选择按钮点击事件
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button2_Click(object sender, EventArgs e)
- {
- if (selectButtonClick != null)
- {
- selectButtonClick(/*sender*/this, new System.EventArgs());
- }
- }
- }
- }
|