From eb424d24e39bab4a245725f35deab3f234ea0f13 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期五, 13 十二月 2019 10:48:50 +0800
Subject: [PATCH] 2019.12.13
---
ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs
old mode 100755
new mode 100644
index 4f9dd8f..d32c138
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/SelectDeviceWithSeekBarRow.cs
@@ -113,7 +113,7 @@
ProgressColor = ZigbeeColor.Current.GXCProgressColor,
ThumbColor = ZigbeeColor.Current.GXCBackgroundColor,
Max = MaxLevel,
- Progress = max
+ Progress = MaxLevel
};
AddChidren(SeekBar);
@@ -123,7 +123,7 @@
Height = Application.GetRealHeight(50),
Width = Application.GetRealWidth(200),
Gravity = Gravity.CenterHorizontal,
- Text = $"{SeekBar.Progress} %",
+ Text = $"{(int)(SeekBar.Progress * 1.0 / MaxLevel * 100)} %",
TextColor = ZigbeeColor.Current.GXCTextGrayColor
};
AddChidren(SeekBarTitle);
@@ -162,6 +162,14 @@
public void SetStatu(bool statu)
{
SelectBtn.Visible = statu;
+ if(statu)
+ {
+ SetProgress(100);
+ }
+ else
+ {
+ SetProgress(0);
+ }
}
/// <summary>
--
Gitblit v1.8.0