From b68cdc7e103a00d5df73e4b75603be8da1815b4a Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 29 四月 2020 13:59:52 +0800
Subject: [PATCH] 上传版本
---
ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs | 56 +++++++++++++++++++++++++-------------------------------
1 files changed, 25 insertions(+), 31 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs b/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs
index 8e1134d..877bc00 100755
--- a/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/TimePoint.cs
@@ -14,13 +14,12 @@
{
Tag = "Logic";
}
-
Dictionary<string, string> timeifon = new Dictionary<string, string>();
- Button beforeClickButton = new Button();
TimeView timeview = new TimeView
{
- Height = Application.GetRealHeight(600),
- BackgroundColor = ZigbeeColor.Current.LogicTopViewBackgroundColor,
+
+ Height = Application.GetRealHeight(550),
+ BackgroundColor =0x40ffffff,// ZigbeeColor.Current.LogicTopViewBackgroundColor,
Width = Application.GetRealWidth(1080),
};
/// <summary>
@@ -52,6 +51,7 @@
timeifon.Add("RemindTime", "0");
timeifon.Add("EnDelay", "0");
timeifon.Add("DelayTime", "0");
+ timeifon.Add("DoorLockOpenDelayTime","0");
timeifon.Add("DateType", TypeValue.ToString());
DateType = dictionary["DateType"];
@@ -80,7 +80,7 @@
var middle = new FrameLayout
{
Y = view.topRowLayout.Bottom,
- Height = Application.GetRealHeight(1920 - 184 - 260),
+ Height = Application.GetRealHeight(Method.H - 184 - 260),
BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor,
};
this.AddChidren(middle);
@@ -96,17 +96,20 @@
void SelectedTimeTypeView(FrameLayout middle, int TypeValue)
{
middle.RemoveAll();
- #region -----绔嬪嵆鎵ц 鏃跺埢
+ #region -----绫诲瀷 鏃跺埢
TypeView typeView = new TypeView();
middle.AddChidren(typeView.Show());
typeView.textBtn.TextID = MyInternationalizationString.type;
+ typeView.titleBtn.Width = Application.GetRealWidth(630 + 70);
typeView.titleBtn.TextID = MyInternationalizationString.immediateexecution;
-
- TypeView timeView = new TypeView();
- timeView.frameLayout.Y = typeView.frameLayout.Bottom;
- middle.AddChidren(timeView.Show());
- timeView.textBtn.TextID = MyInternationalizationString.moment;
- timeView.clickviewBtn.MouseUpEventHandler += (sender, e) => {
+ typeView.backBtn.Visible = false;
+
+
+ TypeView skView = new TypeView();
+ skView.frameLayout.Y = typeView.frameLayout.Bottom;
+ middle.AddChidren(skView.Show());
+ skView.textBtn.TextID = MyInternationalizationString.moment;
+ skView.clickviewBtn.MouseUpEventHandler += (sender, e) => {
TimeTypeView(middle, TypeValue);
};
@@ -117,13 +120,13 @@
{
case 0:
{
- timeView.titleBtn.Text = Language.StringByID(MyInternationalizationString.logiccustom);
+ skView.titleBtn.Text = Language.StringByID(MyInternationalizationString.logiccustom);
textvalue = timeifon["StartHour"] + ":" + timeifon["StartMin"];
}
break;
case 1:
{
- timeView.titleBtn.Text = Language.StringByID(MyInternationalizationString.sunrise);
+ skView.titleBtn.Text = Language.StringByID(MyInternationalizationString.sunrise);
if (int.Parse(timeifon["AdjustTime"]) > 0)
{
textvalue = Language.StringByID(MyInternationalizationString.delayed) + timeifon["AdjustTime"] + Language.StringByID(MyInternationalizationString.logicminute);
@@ -140,7 +143,7 @@
break;
case 2:
{
- timeView.titleBtn.Text = Language.StringByID(MyInternationalizationString.sunset);
+ skView.titleBtn.Text = Language.StringByID(MyInternationalizationString.sunset);
if (int.Parse(timeifon["AdjustTime"]) > 0)
{
textvalue = Language.StringByID(MyInternationalizationString.delayed) + timeifon["AdjustTime"] + Language.StringByID(MyInternationalizationString.logicminute);
@@ -157,7 +160,7 @@
break;
case 3:
{
- timeView.titleBtn.Text = Language.StringByID(MyInternationalizationString.noon);
+ skView.titleBtn.Text = Language.StringByID(MyInternationalizationString.noon);
if (int.Parse(timeifon["AdjustTime"]) > 0)
{
textvalue = Language.StringByID(MyInternationalizationString.delayed) + timeifon["AdjustTime"] + Language.StringByID(MyInternationalizationString.logicminute);
@@ -177,24 +180,13 @@
{
#region -----鑷畾涔夋椂闂�
- typeView.lineBtn.BackgroundColor = ZigbeeColor.Current.LogicBlankBackgroundColor;
- timeView.backBtn.UnSelectedImagePath = "ZigeeLogic/dropdown.png";
- var linebtn = new Button
+ skView.backBtn.UnSelectedImagePath = "ZigeeLogic/dropdown.png";
+ var rowTimeView = new FrameLayout
{
- Y = timeView.frameLayout.Bottom,
- Height = Application.GetRealHeight(5),
- BackgroundColor = ZigbeeColor.Current.LogicRowLayoutLineColor,
- X = Application.GetRealWidth(58),
- Width = Application.GetRealWidth(965),
- };
- middle.AddChidren(linebtn);
- var rowTimeView = new RowLayout
- {
- Y = linebtn.Bottom,
+ Y = skView.frameLayout.Bottom,
Height = Application.GetRealHeight(600),
};
middle.AddChidren(rowTimeView);
-
rowTimeView.AddChidren(timeview);
#endregion
}
@@ -204,10 +196,12 @@
#region -----鎻愬墠/寤舵椂
TypeView delayView = new TypeView();
- delayView.frameLayout.Y = timeView.frameLayout.Bottom;
+ delayView.frameLayout.Y = skView.frameLayout.Bottom;
+ delayView.frameLayout.Height = Application.GetRealHeight(160+20);//澧為珮鏈�鍚庝竴琛岀殑楂樺害20;
middle.AddChidren(delayView.Show());
delayView.textBtn.TextID = MyInternationalizationString.Advancedelay;
delayView.titleBtn.Text = textvalue;
+ delayView.lineBtn.BackgroundColor = BackgroundColor = ZigbeeColor.Current.LogicBackgroundColor;
delayView.clickviewBtn.MouseUpEventHandler += (sender, e) => {
var mList = new List<string>();
mList.Add(Language.StringByID(MyInternationalizationString.advance));
--
Gitblit v1.8.0