mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
5da5f246ed
Kept it more visually stable
26 lines
572 B
C#
26 lines
572 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Wabbajack.Common;
|
|
|
|
namespace Wabbajack
|
|
{
|
|
public class CPUDisplayVM
|
|
{
|
|
public CPUStatus Status { get; set; }
|
|
public DateTime StartTime { get; set; }
|
|
|
|
public void AbsorbStatus(CPUStatus cpu)
|
|
{
|
|
bool starting = cpu.IsWorking && ((!Status?.IsWorking) ?? true);
|
|
Status = cpu;
|
|
if (starting)
|
|
{
|
|
StartTime = DateTime.Now;
|
|
}
|
|
}
|
|
}
|
|
}
|