DotNet 4.8.1 build of DotNetBar
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace DevComponents.Charts.Design
|
||||
{
|
||||
public partial class ChartStyleDialog : Form
|
||||
{
|
||||
#region Private variables
|
||||
|
||||
private CheckBox _CheckedBox;
|
||||
private DateTime _LastClick;
|
||||
|
||||
#endregion
|
||||
|
||||
public ChartStyleDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
_CheckedBox = cbPointPlot;
|
||||
}
|
||||
|
||||
#region Public properties
|
||||
|
||||
public string CbSelected
|
||||
{
|
||||
get { return (_CheckedBox.Name); }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region CbClicked
|
||||
|
||||
private void CbClicked(object sender, EventArgs e)
|
||||
{
|
||||
CheckBox cb = sender as CheckBox;
|
||||
|
||||
if (cb != null)
|
||||
{
|
||||
if (_CheckedBox != cb)
|
||||
{
|
||||
_CheckedBox.Checked = false;
|
||||
|
||||
_CheckedBox = cb;
|
||||
_CheckedBox.Checked = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
TimeSpan ts = DateTime.Now - _LastClick;
|
||||
|
||||
if (ts.TotalMilliseconds < SystemInformation.DoubleClickTime)
|
||||
btnOk.PerformClick();
|
||||
}
|
||||
}
|
||||
|
||||
_LastClick = DateTime.Now;
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user