Beispiel #1
0
        public static async Task DrawBarsPctGraphs(this Canvas2DContext con, SysInfoModel m)
        {
            await con.DrawBar((int)m.AvgCPU, COLOR.Purple, 0, chartHeightPct);

            await con.DrawBar((int)m.HighestCPU, COLOR.DarkPurple, 30, chartHeightPct);

            await con.DrawBar((int)m.AvgMem, COLOR.Blue, 80, chartHeightPct);

            await con.DrawBar((int)m.HighestMem, COLOR.DarkBlue, 110, chartHeightPct);

            await con.DrawBar((int)m.AvgDiskWrite, COLOR.Green, 160, chartHeightPct);

            await con.DrawBar((int)m.HighestDiskWrite, COLOR.DarkGreen, 190, chartHeightPct);
        }