예제 #1
0
        private void UpdateInfoBar()
        {
            Action act = () =>
            {
                InfoControl.CpuUsage      = (int)(IdeProcess.GetCpuUsage() * 100);
                InfoControl.RamUsage      = IdeProcess.WorkingSet64;
                InfoControl.TotalCpuUsage = (int)TotalCpuCounter.NextValue();
                InfoControl.FreeRam       = TotalRamCounter.NextSample().RawValue;
            };

            InfoControl.Dispatcher.BeginInvoke(act);
        }