| | |
| | | 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, |
| | | }; |