Esempio n. 1
0
 public MainViewModel()
 {
     state = tasksExecutor.GetState();
     tasksExecutor.OnTasksExecutorStateChanged += s => State = s;
     UpdateTitle();
     StartUpdateTimer();
 }
 public bool Compare(TasksExecutorState other)
 {
     return(Threads == other.Threads &&
            WorkingThreads == other.WorkingThreads &&
            WaitingThreads == other.WaitingThreads &&
            IdleThreads == other.IdleThreads &&
            PendingTasks == other.PendingTasks);
 }