/** Clear SystemSetupContainer completely, notifying all oberservers if needed. */ protected override void ClearData() { base.ClearData(); _currentSystemSetup = null; _currentSystemSetupPicture = null; _timezoneMap.Clear(); _timezones.Clear(); }
public void NotifySystemSetupPicture(IntPtr handle, MDP_NOTIFY_TYPE nType, IntPtr systemsetuppicturePtr, IntPtr context) { switch (nType) { case MDP_NOTIFY_TYPE.MDP_NOTIFY_SELECT: case MDP_NOTIFY_TYPE.MDP_NOTIFY_UPDATE: case MDP_NOTIFY_TYPE.MDP_NOTIFY_INSERT: _currentSystemSetupPicture = new SystemSetupPicture(systemsetuppicturePtr, base.Handle); break; case MDP_NOTIFY_TYPE.MDP_NOTIFY_DELETE: case MDP_NOTIFY_TYPE.MDP_NOTIFY_CLEAR: _currentSystemSetupPicture = null; break; } if (NotifySystemSetupPictureHandlers != null) { NotifySystemSetupPictureHandlers(nType, _currentSystemSetupPicture, base.Handle); } }
internal SystemSetupContainer(MTA mtaData) : base(mtaData, mtaData.NativeHandle, SystemSetup.FromNativePointerArray, true) { _currentSystemSetup = null; _currentSystemSetupPicture = null; }