File was renamed from HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditPageBLL.cs |
| | |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.RoomNameCannotBeEmpty), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(bodyView); |
| | |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.PlsBindFloor), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(bodyView); |
| | |
| | | return; |
| | | } |
| | | } |
| | | |
| | | DB_ResidenceData.DelRoom(room); |
| | | DB_ResidenceData.rooms.Add(room); |
| | | backAction(); |
| | | this.RemoveFromParent(); |
| | | } |
| | |
| | | f.roomIdList.Remove(room.sid); |
| | | } |
| | | } |
| | | room.sid = ""; |
| | | DB_ResidenceData.DelRoom(room); |
| | | backAction(); |
| | | this.RemoveFromParent(); |
| | |
| | | { |
| | | new Tip() |
| | | { |
| | | CloseTime = 3, |
| | | CloseTime = 1, |
| | | Text = Language.StringByID(StringId.RoomNameCannotBeEmpty), |
| | | Direction = AMPopTipDirection.None, |
| | | }.Show(bodyView); |
| | | return; |
| | | } |
| | | btnRoomName.Text = btnTipRoomName.Text = str; |
| | | btnRoomName.Text = str; |
| | | room.name = str; |
| | | if (pageTitleId == StringId.EditRoomInfo) |
| | | { |
| | |
| | | roomNameList.Add(rroom.name); |
| | | } |
| | | if (pageTitleId == StringId.AddRoom) |
| | | { |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.RoomName, room.name, callBack, StringId.RoomNameCannotBeEmpty, StringId.AddingFailed_RoomAlreadyExists, roomNameList); |
| | | } |
| | | else |
| | | { |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.RoomName, room.name, callBack, StringId.RoomNameCannotBeEmpty, StringId.EidtFailed_RoomAlreadyExists, roomNameList); |
| | | } |
| | | //{ |
| | | new PublicAssmebly().LoadDialog_EditParater(StringId.RoomName, room.name, callBack, StringId.RoomNameCannotBeEmpty, StringId.RoomNameAlreadyExists, roomNameList); |
| | | //} |
| | | //else |
| | | //{ |
| | | // new PublicAssmebly().LoadDialog_EditParater(StringId.RoomName, room.name, callBack, StringId.RoomNameCannotBeEmpty, StringId.EidtFailed_RoomAlreadyExists, roomNameList); |
| | | //} |
| | | }; |
| | | btnEditRoomNameIcon.MouseUpEventHandler = eventHandler; |
| | | roomNameRow.MouseUpEventHandler = eventHandler; |
| | |
| | | { |
| | | room.SaveRoomData(); |
| | | } |
| | | pictureOptionView.RemoveFromParent(); |
| | | baseView.RemoveFromParent(); |
| | | }; |
| | | btnAlbum.MouseDownEventHandler = (sender, e) => { |
| | | btnAlbum.IsSelected = true; |
| | |
| | | { |
| | | room.SaveRoomData(); |
| | | } |
| | | pictureOptionView.RemoveFromParent(); |
| | | baseView.RemoveFromParent(); |
| | | }; |
| | | } |
| | | } |