场景
添加场景
编辑场景增加错误数据类型转译的异常捕获
阿里云日志捕获到异常了
| | |
| | | }; |
| | | row.AddChidren(btnFunctionDelayInfo); |
| | | |
| | | if (Convert.ToInt32(scenefunction.delay) > 0) |
| | | try |
| | | { |
| | | int delayTime = 0; |
| | | int.TryParse(scenefunction.delay, out delayTime); |
| | | |
| | | if (!string.IsNullOrEmpty(scenefunction.delay) && delayTime > 0) |
| | | { |
| | | btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + new Scene() { delay = scenefunction.delay }.GetDelayText(); |
| | | } |
| | |
| | | { |
| | | btnFunctionDelayInfo.Text = Language.StringByID(StringId.NoDelay); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("Error", $"场景编辑,转译数据异常:{ex.StackTrace}"); |
| | | } |
| | | |
| | | var btnFunctionFloorAndRoom = new Button() |
| | | { |
| | |
| | | }; |
| | | row.AddChidren(btnFunctionDelayInfo); |
| | | |
| | | if (!string.IsNullOrEmpty(scenefunction.delay) && Convert.ToInt32(scenefunction.delay) > 0) |
| | | try |
| | | { |
| | | int delayTime = 0; |
| | | int.TryParse(scenefunction.delay, out delayTime); |
| | | |
| | | if (!string.IsNullOrEmpty(scenefunction.delay) && delayTime > 0) |
| | | { |
| | | btnFunctionDelayInfo.Text = Language.StringByID(StringId.Delay) + " " + new Scene() { delay = scenefunction.delay }.GetDelayText(); |
| | | } |
| | |
| | | { |
| | | btnFunctionDelayInfo.Text = Language.StringByID(StringId.NoDelay); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log("Error", $"场景编辑,转译数据异常:{ex.StackTrace}"); |
| | | } |
| | | |
| | | |
| | | var btnFunctionFloorAndRoom = new Button() |