Example #1
0
        public override DisplayMessage GetMessage()
        {
            base.GetMessage();

            long ram = long.Parse(ManagementObject["AdapterRAM"].ToString());

            return(new DisplayMessage(
                       topLine: GetGpuName(),
                       bottomLine: $"VRAM: {FriendlyFileSizeFormatter.Format(ram, "B")}"));
        }
        public DisplayMessage GetMessage()
        {
            const string top = "Download Usage";

            float v = _counter.NextValue();

            string bottom = $"{FriendlyFileSizeFormatter.Format(v, "b")}/sec";

            return(new DisplayMessage(top, bottom));
        }