2 using System.Collections.Generic;
5 using SiliconStudio.Paradox.Framework.MicroThreading;
6 using System.Windows.Input;
8 using SiliconStudio.Presentation;
10 namespace SiliconStudio.Paradox.DebugTools.ViewModels
14 private readonly MicroThread microThread;
18 if (microThread == null)
19 throw new ArgumentNullException(
"microThread");
21 if (microThread.Scheduler == null)
22 throw new ArgumentException(
"Invalid Scheduler in MicroThread " + microThread.Id);
24 this.microThread = microThread;
27 throw new NotImplementedException();
31 private void OnMicroThreadStateChanged(
object sender, SchedulerEventArgs e)
33 if (e.MicroThread == microThread)
35 OnPropertyChanged<MicroThreadViewModel>(n => n.State);
43 return microThread.Id;
51 return microThread.Name;
59 return microThread.State;
67 return microThread.Exception;