private void RenderProvider(Listing_Standard list, IPowerProvider provider)
        {
            var section = list.BeginSection(ProviderHeight);

            DrawIcon(section, 32);
            DrawLabel(section, provider);

            section.Label(FormatDischarge(provider));
            section.Label(FormatCapacity(provider));

            list.EndSection(section);
            list.Gap();
        }
Example #2
0
 private void PowerStateChanged(IPowerProvider arg1, bool arg2)
 {
     MarkForUpdate();
 }