From f1e8c2cde53050ffe78ef3b13346ba77ca65110c Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 03 十二月 2020 17:55:52 +0800
Subject: [PATCH] 2020-12-03-2
---
HDL_ON/UI/UI0-Public/PublicAssmebly.cs | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/HDL_ON/UI/UI0-Public/PublicAssmebly.cs b/HDL_ON/UI/UI0-Public/PublicAssmebly.cs
index 9f45882..70ba919 100644
--- a/HDL_ON/UI/UI0-Public/PublicAssmebly.cs
+++ b/HDL_ON/UI/UI0-Public/PublicAssmebly.cs
@@ -545,7 +545,7 @@
/// 鍦烘櫙寤舵椂璁剧疆寮圭獥
/// </summary>
/// <param name="function"></param>
- public void SetSceneDelayDialog(Function function,Button btn)
+ public void SetSceneDelayDialog(Scene scene,Button btn)
{
Button lastButton = new Button();
int changeDelay = 0;
@@ -628,7 +628,7 @@
SelectedBackgroundColor = CSS_Color.MainColor,
X = Application.GetRealWidth(20),
Y = Application.GetRealHeight(80),
- IsSelected = function.delayText == "30s"
+ IsSelected = scene.delayText == "30s"
};
optionBaseView.AddChidren(btn1);
@@ -648,7 +648,7 @@
SelectedBackgroundColor = CSS_Color.MainColor,
X = Application.GetRealWidth(195),
Y = Application.GetRealHeight(80),
- IsSelected = function.delayText == "1min"
+ IsSelected = scene.delayText == "1min"
};
optionBaseView.AddChidren(btn2);
@@ -668,7 +668,7 @@
SelectedBackgroundColor = CSS_Color.MainColor,
X = Application.GetRealWidth(20),
Y = Application.GetRealHeight(140),
- IsSelected = function.delayText == "2min"
+ IsSelected = scene.delayText == "2min"
};
optionBaseView.AddChidren(btn3);
@@ -688,7 +688,7 @@
SelectedBackgroundColor = CSS_Color.MainColor,
X = Application.GetRealWidth(195),
Y = Application.GetRealHeight(140),
- IsSelected = function.delayText == "5min"
+ IsSelected = scene.delayText == "5min"
};
optionBaseView.AddChidren(btn4);
@@ -709,8 +709,8 @@
btnConfrim.MouseUpEventHandler = (sender, e) =>
{
dialog.Close();
- function.delay = changeDelay;
- btn.Text = function.delayText;
+ scene.delay = changeDelay;
+ btn.Text = scene.delayText;
};
btn1.MouseUpEventHandler = (sender, e) => {
btn1.IsSelected = !btn1.IsSelected;
--
Gitblit v1.8.0