diff --git a/Bin/SunnyUI.dll b/Bin/SunnyUI.dll index bf66b239..c249f46d 100644 Binary files a/Bin/SunnyUI.dll and b/Bin/SunnyUI.dll differ diff --git a/Bin/SunnyUI.pdb b/Bin/SunnyUI.pdb index b6ddc8e3..c328ca77 100644 Binary files a/Bin/SunnyUI.pdb and b/Bin/SunnyUI.pdb differ diff --git a/SunnyUI/Charts/UIBarChart.cs b/SunnyUI/Charts/UIBarChart.cs index d24388b5..7efe8c1a 100644 --- a/SunnyUI/Charts/UIBarChart.cs +++ b/SunnyUI/Charts/UIBarChart.cs @@ -109,7 +109,7 @@ namespace Sunny.UI float xx = barX + x1 * (i + 1) + x2 * i + x1; float ww = Math.Min(x2, series.MaxWidth); - xx = xx - ww / 2.0f; + xx -= ww / 2.0f; if (YAxisStart >= 0) { diff --git a/SunnyUI/Charts/UIBarChartEx.cs b/SunnyUI/Charts/UIBarChartEx.cs index 0a374e54..8bce1e86 100644 --- a/SunnyUI/Charts/UIBarChartEx.cs +++ b/SunnyUI/Charts/UIBarChartEx.cs @@ -100,7 +100,7 @@ namespace Sunny.UI float xx = barX + DrawSize.Width * 1.0f / DataCount / 2; float ww = Math.Min(x2, series.MaxWidth); - xx = xx - ww / 2.0f; + xx -= ww / 2.0f; if (YAxisStart >= 0) { @@ -187,7 +187,7 @@ namespace Sunny.UI xx = barX + x1 * ((j + 1) * 3 - 1); float ww = Math.Min(x2, series.MaxWidth); - xx = xx - ww / 2.0f; + xx -= ww / 2.0f; if (YAxisStart >= 0) { @@ -442,7 +442,7 @@ namespace Sunny.UI { g.DrawLine(ChartStyle.ForeColor, DrawOrigin.X, start, Width - BarOption.Grid.Right, start); - float lineStart = DrawOrigin.X; + // float lineStart = DrawOrigin.X; // for (int j = 0; j <= BarOption.Series.Count; j++) // { // g.DrawLine(ChartStyle.ForeColor, lineStart, start, lineStart, start + BarOption.XAxis.AxisTick.Length); diff --git a/SunnyUI/Controls/UIDataGridView.cs b/SunnyUI/Controls/UIDataGridView.cs index 483cebcc..11de54bb 100644 --- a/SunnyUI/Controls/UIDataGridView.cs +++ b/SunnyUI/Controls/UIDataGridView.cs @@ -173,8 +173,8 @@ namespace Sunny.UI { HBar.Maximum = HorizontalScrollBar.Maximum; HBar.Value = HorizontalScrollBar.Value; - HBar.BoundsWidth = HorizontalScrollBar.Bounds.Width; - HBar.LargeChange = HorizontalScrollBar.Maximum / VisibleColumnCount(); + HBar.BoundsWidth = HorizontalScrollBar.LargeChange; + HBar.LargeChange = HorizontalScrollBar.LargeChange;//.Maximum / VisibleColumnCount(); HBar.Visible = true; } else diff --git a/SunnyUI/Controls/UIImageListBox.cs b/SunnyUI/Controls/UIImageListBox.cs index 3c8ff9c8..1461764d 100644 --- a/SunnyUI/Controls/UIImageListBox.cs +++ b/SunnyUI/Controls/UIImageListBox.cs @@ -402,7 +402,7 @@ namespace Sunny.UI protected override void OnMeasureItem(MeasureItemEventArgs e) { - e.ItemHeight = e.ItemHeight + ItemHeight; + e.ItemHeight += ItemHeight; } /// diff --git a/SunnyUI/Controls/UIListBox.cs b/SunnyUI/Controls/UIListBox.cs index 8dd7ddb6..20b2deaf 100644 --- a/SunnyUI/Controls/UIListBox.cs +++ b/SunnyUI/Controls/UIListBox.cs @@ -569,7 +569,7 @@ namespace Sunny.UI protected override void OnMeasureItem(MeasureItemEventArgs e) { base.OnMeasureItem(e); - e.ItemHeight = e.ItemHeight + ItemHeight; + e.ItemHeight += ItemHeight; } public void SelectedFirst()