From b4312dc4fc0b37955322058937fea6a1845de3bf Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期五, 25 十月 2019 17:53:45 +0800
Subject: [PATCH] 2019-10-25-3
---
ZigbeeApp/Shared/Phone/Device/Room/AddRoom.cs | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/Device/Room/AddRoom.cs b/ZigbeeApp/Shared/Phone/Device/Room/AddRoom.cs
old mode 100644
new mode 100755
index a6d5baf..cd60339
--- a/ZigbeeApp/Shared/Phone/Device/Room/AddRoom.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Room/AddRoom.cs
@@ -290,7 +290,8 @@
};
settingContentFL.AddChidren(settingLine);
- confirm = new Device.CommonForm.CompleteButton() { };
+ confirm = new Device.CommonForm.CompleteButton(1700, 700, 127);
+ confirm.SetTitle(R.MyInternationalizationString.Confrim);
this.AddChidren(confirm);
#endregion
@@ -448,6 +449,7 @@
if (room.BackgroundImageType == 1 || room.BackgroundImageType == 2)
{
OldBackgroundImagePath = room.BackgroundImage;
+ System.IO.File.Delete(OldBackgroundImagePath);
}
backGround.UnSelectedImagePath = $"RoomPicture{tradeTime}.png";
//room.BackgroundImage = $"{Config.Instance.HomeId}/{backGround.UnSelectedImagePath}";
@@ -469,6 +471,7 @@
if (room.BackgroundImageType == 1 || room.BackgroundImageType == 2)
{
OldBackgroundImagePath = room.BackgroundImage;
+ System.IO.File.Delete(OldBackgroundImagePath);
}
backGround.UnSelectedImagePath = $"RoomPicture{tradeTime}.png";
//room.BackgroundImage = $"{Config.Instance.HomeId}/{backGround.UnSelectedImagePath}";
@@ -576,7 +579,7 @@
if (IconType == 1 || IconType == 2)
{
room.MoveBackGroundIamageFileToDirectory(backGround.UnSelectedImagePath, backGround.UnSelectedImagePath);
- room.BackgroundImage = $"{Config.Instance.FullPath}/{backGround.UnSelectedImagePath}";
+ room.BackgroundImage = $"{Config.Instance.Guid}/{Config.Instance.HomeId}/{backGround.UnSelectedImagePath}";
}
else
{
@@ -611,7 +614,7 @@
if (IconType == 1 || IconType == 2)
{
room.MoveBackGroundIamageFileToDirectory(backGround.UnSelectedImagePath, backGround.UnSelectedImagePath);
- room.BackgroundImage = $"{Config.Instance.FullPath}/{backGround.UnSelectedImagePath}";
+ room.BackgroundImage = $"{Config.Instance.Guid}/{Config.Instance.HomeId}/{backGround.UnSelectedImagePath}";
}
else
{
--
Gitblit v1.8.0