public DisplayHandler(iMonWrapperApi imon)
{
if (imon == null)
{
throw new ArgumentNullException("imon");
}
this.imon = imon;
this.imon.StateChanged += stateChanged;
this.queue = new List<Text>();
this.icons = new Dictionary<iMonLcdIcons, bool>(Enum.GetValues(typeof(iMonLcdIcons)).Length);
foreach (iMonLcdIcons icon in Enum.GetValues(typeof(iMonLcdIcons)))
{
this.icons.Add(icon, false);
}
this.WorkerReportsProgress = false;
this.WorkerSupportsCancellation = true;
this.semReady = new Semaphore(0, 1);
this.semWork = new Semaphore(0, 1);
}