aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Controls/ProgressBarEX.cs
diff options
context:
space:
mode:
Diffstat (limited to 'source/WindowsFormsApplication1/Controls/ProgressBarEX.cs')
-rw-r--r--source/WindowsFormsApplication1/Controls/ProgressBarEX.cs14
1 files changed, 4 insertions, 10 deletions
diff --git a/source/WindowsFormsApplication1/Controls/ProgressBarEX.cs b/source/WindowsFormsApplication1/Controls/ProgressBarEX.cs
index 4896292..8febdcd 100644
--- a/source/WindowsFormsApplication1/Controls/ProgressBarEX.cs
+++ b/source/WindowsFormsApplication1/Controls/ProgressBarEX.cs
@@ -6,11 +6,11 @@ using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
-using System.Windows.Forms;
+using ShiftUI;
namespace ShiftOS
{
- public partial class ProgressBarEX : UserControl
+ public partial class ProgressBarEX : UserWidget
{
public ProgressBarEX()
{
@@ -102,13 +102,7 @@ namespace ShiftOS
get { return _MaxValue; }
set
{
- if (value > this.MinValue)
- {
- _MaxValue = value;
- }
- else {
- throw new ArgumentOutOfRangeException("The maximum value must be more than the minimum value.");
- }
+ _MaxValue = value;
}
}
@@ -279,7 +273,7 @@ namespace ShiftOS
#region " Drawing "
- protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
+ protected override void OnPaint(ShiftUI.PaintEventArgs e)
{
base.OnPaint(e);
DoPaintBackground(e.Graphics);