From 34e965100d635346e2d4cd6e6013bdaed66b3004 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 02 一月 2020 19:52:13 +0800
Subject: [PATCH] 2019.1.2-3
---
ZigbeeApp/Shared/Phone/Device/CommonForm/CompleteButton.cs | 40 +++++++++++++++++++++++++++++-----------
1 files changed, 29 insertions(+), 11 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/CompleteButton.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/CompleteButton.cs
index fd894fd..dbc70fa 100644
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/CompleteButton.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/CompleteButton.cs
@@ -6,28 +6,46 @@
/// Complete button.
/// <para>榛樿鏂囧瓧锛� 瀹屾垚 </para>
/// <para>鐧借壊瀛椾綋</para>
- /// <para>钃濊壊鑳屾櫙</para>
+ /// <para>榛戣壊鑳屾櫙</para>
/// <para>鏂囧瓧灞呬腑</para>
/// <para>榛樿瀛楀彿澶у皬</para>
/// </summary>
public class CompleteButton:Button
{
- private readonly int Button_Height = 110;
- private readonly int Button_Width = 750;
- private readonly int Button_Y = CommonPage.AppRealHeight - 300;
/// <summary>
- /// Initializes a new instance of the <see cref="T:Shared.Phone.Device.CommonForm.CompleteButton"/> class.
+ /// CompleteButton
/// </summary>
- public CompleteButton()
+ /// <param name="y"></param>
+ /// <param name="width"></param>
+ /// <param name="height"></param>
+ public CompleteButton(int y, int width, int height)
{
+ this.Y = Application.GetRealHeight(y);
+ this.Width = Application.GetRealWidth(width);
+ this.Height = Application.GetRealHeight(height);
TextID = R.MyInternationalizationString.Complete;
- BackgroundColor = ZigbeeColor.Current.GXCButtonBlueColor;
+ BackgroundColor = ZigbeeColor.Current.GXCButtonBlackSelectedColor;
TextColor = ZigbeeColor.Current.GXCTextWhiteColor;
- Height = Application.GetRealHeight(Button_Height);
- Width = Application.GetRealWidth(Button_Width);
+ IsBold = true;
+ TextSize = 16;
Gravity = Gravity.CenterHorizontal;
- Radius = (uint)Application.GetRealHeight(Button_Height/2);
- Y = Application.GetRealHeight(Button_Y);
+ Radius = (uint)Application.GetRealHeight(height / 2);
+ }
+ /// <summary>
+ /// SetTitle
+ /// </summary>
+ /// <param name="title"></param>
+ public void SetTitle(string title)
+ {
+ Text = title;
+ }
+ /// <summary>
+ /// SetTitle
+ /// </summary>
+ /// <param name="title"></param>
+ public void SetTitle(int title)
+ {
+ SetTitle(Language.StringByID(title));
}
}
}
--
Gitblit v1.8.0