合并
This commit is contained in:
commit
459a342ab3
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -53,6 +53,41 @@ namespace Sunny.UI
|
||||
public UITimeItem()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.MouseWheel += UITimeItem_MouseWheel;
|
||||
}
|
||||
|
||||
private void UITimeItem_MouseWheel(object sender, System.Windows.Forms.MouseEventArgs e)
|
||||
{
|
||||
if (e.Delta < 0)
|
||||
{
|
||||
if (new Rectangle(hc.Location, hc.Size).Contains(e.X, e.Y))
|
||||
{
|
||||
h1_Click(null, null);
|
||||
}
|
||||
else if (new Rectangle(mc.Location, mc.Size).Contains(e.X, e.Y))
|
||||
{
|
||||
m1_Click(null, null);
|
||||
}
|
||||
else if (new Rectangle(sc.Location, sc.Size).Contains(e.X, e.Y))
|
||||
{
|
||||
s1_Click(null, null);
|
||||
}
|
||||
}
|
||||
else if (e.Delta > 0)
|
||||
{
|
||||
if (new Rectangle(hc.Location, hc.Size).Contains(e.X, e.Y))
|
||||
{
|
||||
h2_Click(null, null);
|
||||
}
|
||||
else if (new Rectangle(mc.Location, mc.Size).Contains(e.X, e.Y))
|
||||
{
|
||||
m2_Click(null, null);
|
||||
}
|
||||
else if (new Rectangle(sc.Location, sc.Size).Contains(e.X, e.Y))
|
||||
{
|
||||
s2_Click(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private DateTime time;
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user