public static void Shutdown() { if (sLotCheckTask == null) { return; } sLotCheckTask.Dispose(); sLotCheckTask = null; }
public static void ShutdownWatchers() { LotCheckTask.Shutdown(); if (sLotChangedListener != null) { sLotChangedListener.Dispose(); sLotChangedListener = null; } }
protected static void Startup() { if (sLotCheckTask != null) { return; } sLotCheckTask = new LotCheckTask(); sLotCheckTask.AddToSimulator(); }
public static void InitializeWatchers() { ShutdownWatchers(); LotCheckTask.Initialize(); if ((Settings.InUse(SkewerEx.VisibilityType.ActiveSimLot)) || (Settings.InUse(SkewerEx.VisibilityType.ActiveHomeLot)) || (Settings.InUse(SkewerEx.VisibilityType.ActiveFamilyLot))) { sLotChangedListener = new Common.DelayedEventListener(EventTypeId.kEventSimMovedFromLot, OnLotChanged); } }