| | |
| | | Width = Application.GetRealWidth(160), |
| | | Height = Application.GetRealHeight(105), |
| | | BackgroundColor = CSS_Color.MainBackgroundColor, |
| | | Radius = (uint)Application.GetRealWidth(5), |
| | | Radius = (uint)Application.GetRealWidth(15), |
| | | }; |
| | | view1.AddChidren(view); |
| | | |
| | |
| | | |
| | | var btnLogo = new Button() |
| | | { |
| | | Y = Application.GetRealWidth(90), |
| | | Y = Application.GetRealWidth(85), |
| | | UnSelectedImagePath = "FunctionIcon/Acst/LvJianLogo.png", |
| | | SelectedImagePath = "FunctionIcon/Acst/LvJianLogo.png", |
| | | Width = Application.GetRealWidth(80), |
| | |
| | | string onoff = btnAcstPower.IsSelected ? "on" : "off"; |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, onoff); |
| | | Control.Ins.SendWriteCommand(FunctionList.List.GetAcstParentList()[0], d); |
| | | foreach(var temp in FunctionList.List.GetAcstParentList()) |
| | | { |
| | | Control.Ins.SendWriteCommand(temp, d); |
| | | } |
| | | |
| | | }; |
| | | |
| | |
| | | string onoff = btnAcstPower.IsSelected ? "on":"off"; |
| | | Dictionary<string, string> d = new Dictionary<string, string>(); |
| | | d.Add(FunctionAttributeKey.OnOff, onoff); |
| | | Control.Ins.SendWriteCommand(FunctionList.List.GetAcstParentList()[0], d); |
| | | |
| | | foreach (var temp in FunctionList.List.GetAcstParentList()) |
| | | { |
| | | Control.Ins.SendWriteCommand(temp, d); |
| | | } |
| | | }; |
| | | |
| | | |
| | |
| | | TextColor = CSS_Color.MainColor, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextAlignment = TextAlignment.CenterLeft, |
| | | Text = FunctionList.List.InverterList().Count.ToString(), |
| | | Text = FunctionList.List.InverterList().FindAll((temp)=>temp.trait_on_off.ToString() == "on").Count.ToString(), |
| | | Tag = "inverter_onCount", |
| | | BorderWidth = 0, |
| | | }; |