File was renamed from ZigbeeApp/Shared/Phone/Device/Category/SelectHouse.cs |
| | |
| | | using System.Collections.Generic; |
| | | using Shared.Common; |
| | | |
| | | namespace Shared.Phone.Device.Category |
| | | namespace Shared.Phone.Category |
| | | { |
| | | public class SelectHouse : FrameLayout |
| | | public class SelectHouseForm : FrameLayout |
| | | { |
| | | public Action<string> HouseAction; |
| | | |
| | |
| | | /// <param name="verticalScrolView"></param> |
| | | private void AddFloor(VerticalScrolViewLayout verticalScrolView, House house) |
| | | { |
| | | var frow = new CommonForm.LeftIconButtonRow(449, 150); |
| | | var frow = new Device.CommonForm.LeftIconButtonRow(449, 150); |
| | | frow.Width = Application.GetMinRealAverage(449); |
| | | frow.Height = Application.GetMinRealAverage(150); |
| | | frow.Tag = house.FileName; |
| | |
| | | /// <param name="mouseEventArgs"></param> |
| | | private void SelectFloor_MouseUpEvent(object sender, MouseEventArgs mouseEventArgs) |
| | | { |
| | | (sender as CommonForm.LeftIconButtonRow).IsSelected = true; |
| | | var home = House.GetHouseByFilePath((sender as CommonForm.LeftIconButtonRow).Tag.ToString()); |
| | | (sender as Device.CommonForm.LeftIconButtonRow).IsSelected = true; |
| | | var home = House.GetHouseByFilePath((sender as Device.CommonForm.LeftIconButtonRow).Tag.ToString()); |
| | | RemoveView(); |
| | | HouseAction?.Invoke(home.Id); |
| | | } |