Commit d65dcd8b 刘韬

combox增加 Disable

1 个父辈 98769f7e
...@@ -459,7 +459,7 @@ namespace HZH_Controls.Controls ...@@ -459,7 +459,7 @@ namespace HZH_Controls.Controls
} }
base.BackColor = Color.Transparent; base.BackColor = Color.Transparent;
} }
public bool Disable = false;
/// <summary> /// <summary>
/// Handles the SizeChanged event of the UCComboBox control. /// Handles the SizeChanged event of the UCComboBox control.
/// </summary> /// </summary>
...@@ -492,6 +492,9 @@ namespace HZH_Controls.Controls ...@@ -492,6 +492,9 @@ namespace HZH_Controls.Controls
/// <param name="e">The <see cref="MouseEventArgs" /> instance containing the event data.</param> /// <param name="e">The <see cref="MouseEventArgs" /> instance containing the event data.</param>
protected virtual void click_MouseDown(object sender, MouseEventArgs e) protected virtual void click_MouseDown(object sender, MouseEventArgs e)
{ {
if (Disable)
return;
if (_frmAnchor == null || _frmAnchor.IsDisposed || _frmAnchor.Visible == false) if (_frmAnchor == null || _frmAnchor.IsDisposed || _frmAnchor.Visible == false)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!