| | |
| | | } |
| | | title.Text = curtainmodel.Name; |
| | | Button btnOpenCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | UnSelectedImagePath = "Curtain/CurtainOpen.png", |
| | | SelectedImagePath = "Curtain/CurtainOpenSelected.png", |
| | | X = Application.GetRealWidth (20), |
| | |
| | | }; |
| | | dialogBodyLayout.AddChidren (btnOpenLbl); |
| | | Button btnStopCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | X = Application.GetRealWidth ((480 - 124) / 2), |
| | | Y = btnOpenCurtain.Y, |
| | | UnSelectedImagePath = "Curtain/CurtainTimeOut.png", |
| | |
| | | }; |
| | | dialogBodyLayout.AddChidren (btnStopLbl); |
| | | Button btnCloseCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | X = Application.GetRealWidth (480 - 124 - 35), |
| | | Y = btnOpenCurtain.Y, |
| | | UnSelectedImagePath = "Curtain/CurtainClose.png", |
| | |
| | | }; |
| | | |
| | | Button btnOpenCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | UnSelectedImagePath = "Curtain/CurtainOpen.png", |
| | | SelectedImagePath = "Curtain/CurtainOpenSelected.png", |
| | | X = Application.GetRealWidth (20), |
| | |
| | | }; |
| | | dialogBodyLayout.AddChidren (btnOpenLbl); |
| | | Button btnStopCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | X = Application.GetRealWidth ((480 - 124) / 2), |
| | | Y = btnOpenCurtain.Y, |
| | | UnSelectedImagePath = "Curtain/CurtainTimeOut.png", |
| | |
| | | }; |
| | | //dialogBodyLayout.AddChidren (btnStopLbl); |
| | | Button btnCloseCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | X = Application.GetRealWidth (480 - 124 - 35), |
| | | Y = btnOpenCurtain.Y, |
| | | UnSelectedImagePath = "Curtain/CurtainClose.png", |
| | |
| | | |
| | | |
| | | Button btnOpenCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | UnSelectedImagePath = "Curtain/CurtainRollerUp.png", |
| | | SelectedImagePath = "Curtain/CurtainRollerUpOn.png", |
| | | X = Application.GetRealWidth (20), |
| | |
| | | }; |
| | | dialogBodyLayout.AddChidren (btnOpenLbl); |
| | | Button btnStopCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | X = Application.GetRealWidth ((480 - 124) / 2), |
| | | Y = btnOpenCurtain.Y, |
| | | UnSelectedImagePath = "Curtain/CurtainTimeOut.png", |
| | |
| | | }; |
| | | //dialogBodyLayout.AddChidren (btnStopLbl); |
| | | Button btnCloseCurtain = new Button () { |
| | | Width = Application.GetRealWidth (124), |
| | | Height = Application.GetRealHeight (125), |
| | | Width = Application.GetMinRealAverage (124), |
| | | Height = Application.GetMinRealAverage (124), |
| | | X = Application.GetRealWidth (480 - 124 - 35), |
| | | Y = btnOpenCurtain.Y, |
| | | UnSelectedImagePath = "Curtain/CurtainRollerDown.png", |
| | |
| | | dialogBodyLayout.AddChidren (btnSetTemperature); |
| | | |
| | | Button btnReduceTemperature = new Button () { |
| | | Width = Application.GetRealWidth (94), |
| | | Height = Application.GetRealHeight (94), |
| | | Width = Application.GetMinRealAverage (94), |
| | | Height = Application.GetMinRealAverage (94), |
| | | X = Application.GetRealWidth (20), |
| | | Y = btnSetTemperature.Bottom + Application.GetRealHeight (20), |
| | | UnSelectedImagePath = "AC/AC-.png", |
| | |
| | | dialogBodyLayout.AddChidren (btnReduceTemperature); |
| | | |
| | | Button btnSwitchAC = new Button () { |
| | | Width = Application.GetRealWidth (94), |
| | | Height = Application.GetRealHeight (94), |
| | | Width = Application.GetMinRealAverage (94), |
| | | Height = Application.GetMinRealAverage (94), |
| | | X = Application.GetRealWidth ((480 - 94) / 2), |
| | | Y = btnReduceTemperature.Y, |
| | | UnSelectedImagePath = "AC/ACClose.png", |
| | |
| | | } |
| | | |
| | | Button btnAddTemperature = new Button () { |
| | | Width = Application.GetRealWidth (94), |
| | | Height = Application.GetRealHeight (94), |
| | | Width = Application.GetMinRealAverage (94), |
| | | Height = Application.GetMinRealAverage (94), |
| | | X = Application.GetRealWidth (480 - 20 - 94), |
| | | Y = btnReduceTemperature.Y, |
| | | UnSelectedImagePath = "AC/AC+.png", |
| | |
| | | dialogBodyLayout.AddChidren (acModeView); |
| | | |
| | | Button btnACModeLeft = new Button () { |
| | | Width = Application.GetRealWidth (129), |
| | | Height = Application.GetRealHeight (129), |
| | | Width = Application.GetMinRealAverage (129), |
| | | Height = Application.GetMinRealAverage (129), |
| | | X = btnReduceTemperature.X - Application.GetRealWidth (17), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "AC/ACLeft.png", |
| | |
| | | }; |
| | | acModeView.AddChidren (btnModeIcon); |
| | | Button btnACModeRight = new Button () { |
| | | Width = Application.GetRealWidth (129), |
| | | Height = Application.GetRealHeight (129), |
| | | Width = Application.GetMinRealAverage (129), |
| | | Height = Application.GetMinRealAverage (129), |
| | | X = btnAddTemperature.X - Application.GetRealWidth (17), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "AC/ACRight.png", |
| | |
| | | dialogBodyLayout.AddChidren (acWindView); |
| | | |
| | | Button btnACWindLeft = new Button () { |
| | | Width = Application.GetRealWidth (129), |
| | | Height = Application.GetRealHeight (129), |
| | | Width = Application.GetMinRealAverage (129), |
| | | Height = Application.GetMinRealAverage (129), |
| | | X = btnReduceTemperature.X - Application.GetRealWidth (17), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "AC/ACLeft.png", |
| | |
| | | acWindView.AddChidren (btnWindIcon); |
| | | |
| | | Button btnACWindRight = new Button () { |
| | | Width = Application.GetRealWidth (129), |
| | | Height = Application.GetRealHeight (129), |
| | | Width = Application.GetMinRealAverage (129), |
| | | Height = Application.GetMinRealAverage (129), |
| | | X = btnAddTemperature.X - Application.GetRealWidth (17), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "AC/ACRight.png", |
| | |
| | | title.Text = fh.Name; |
| | | |
| | | Button FH_Heat = new Button () { |
| | | Width = Application.GetRealWidth (120), |
| | | Height = Application.GetRealHeight (120), |
| | | Width = Application.GetMinRealAverage (120), |
| | | Height = Application.GetMinRealAverage (120), |
| | | X = Application.GetRealWidth (20), |
| | | Y = Application.GetRealHeight (120), |
| | | UnSelectedImagePath = "FH/FH_Heat_on.png", |
| | |
| | | }; |
| | | |
| | | Button btnFHSwitch = new Button () { |
| | | Width = Application.GetRealWidth (80), |
| | | Height = Application.GetRealHeight (80), |
| | | Width = Application.GetMinRealAverage (80), |
| | | Height = Application.GetMinRealAverage (80), |
| | | X = Application.GetRealWidth (480 - 40 - 80), |
| | | Y = Application.GetRealHeight (140), |
| | | UnSelectedImagePath = "AC/ACClose.png", |
| | |
| | | dialogBodyLayout.AddChidren (fhTemperatureView); |
| | | |
| | | Button btnReduceTemperature = new Button () { |
| | | Width = Application.GetRealWidth (90), |
| | | Height = Application.GetRealHeight (90), |
| | | Width = Application.GetMinRealAverage (90), |
| | | Height = Application.GetMinRealAverage (90), |
| | | X = Application.GetRealWidth (40), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "AC/AC-.png", |
| | |
| | | }; |
| | | fhTemperatureView.AddChidren (btnSetTemperature); |
| | | Button BtnAddTemperature = new Button () { |
| | | Width = Application.GetRealWidth (90), |
| | | Height = Application.GetRealHeight (90), |
| | | Width = Application.GetMinRealAverage (90), |
| | | Height = Application.GetMinRealAverage (90), |
| | | X = Application.GetRealWidth (480 - 90 - 40), |
| | | Gravity = Gravity.CenterVertical, |
| | | UnSelectedImagePath = "AC/AC+.png", |
| | |
| | | Button btnWindSpeedReduce = new Button () { |
| | | X = Application.GetRealWidth (100), |
| | | Y = btnWindSpeedTitle.Bottom, |
| | | Width = Application.GetRealWidth (64), |
| | | Height = Application.GetRealHeight (62), |
| | | Width = Application.GetMinRealAverage (64), |
| | | Height = Application.GetMinRealAverage (62), |
| | | UnSelectedImagePath = "Light/Light-.png", |
| | | SelectedImagePath = "Light/Light-On.png", |
| | | }; |
| | |
| | | windBodyView.AddChidren (btnWindSpeedText); |
| | | |
| | | Button btnWindSpeedAdd = new Button () { |
| | | Width = Application.GetRealWidth (64), |
| | | Height = Application.GetRealHeight (62), |
| | | Width = Application.GetMinRealAverage (64), |
| | | Height = Application.GetMinRealAverage (62), |
| | | UnSelectedImagePath = "Light/Light+.png", |
| | | SelectedImagePath = "Light/Light+On.png", |
| | | X = btnWindSpeedText.Right, |