| | |
| | | void LoadEvent_FloorChoose(Button btn) |
| | | { |
| | | btn.MouseUpEventHandler = (sender, e) => { |
| | | btn.IsSelected = true; |
| | | btn.IsBold = true; |
| | | if (lastButton != null) |
| | | { |
| | | lastButton.IsSelected = false; |
| | | btn.IsBold = false; |
| | | if (lastButton.Text == btn.Text) |
| | | { |
| | | lastButton = null; |
| | | } |
| | | //btn.IsBold = false; |
| | | } |
| | | btn.IsSelected = true; |
| | | //btn.IsBold = true; |
| | | lastButton = btn; |
| | | }; |
| | | } |
| | |
| | | string delFloor = (sender as Button).Tag.ToString(); |
| | | DB_ResidenceData.residenceData.floors.Remove(delFloor); |
| | | DB_ResidenceData.residenceData.SaveResidenceData(); |
| | | topCallBcak("del", delFloor); |
| | | topCallBack("del", delFloor); |
| | | }; |
| | | new PublicAssmebly().TipMsg(StringId.Tip, StringId.DelFloorTip, action); |
| | | }; |
| | |
| | | /// </summary> |
| | | void LoadEvent_BindFloor() |
| | | { |
| | | btnConfrim.MouseUpEventHandler = (sender, e) => { |
| | | btnConfrim.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | if (lastButton != null) |
| | | { |
| | | room.floorIndex = DB_ResidenceData.residenceData.floors.IndexOf(lastButton.Text.Trim()); |
| | | } |
| | | room.floorIndex = DB_ResidenceData.residenceData.floors.IndexOf(lastButton.Text.Trim()); |
| | | if (backAction != null) |
| | | { |
| | | backAction(); |
| | | } |
| | | bodyView.RemoveFromParent(); |
| | | DB_ResidenceData.residenceData.SaveResidenceData(); |
| | | }; |
| | | } |
| | | |