/// <summary> /// Loads the resource. /// </summary> internal void LoadResource() { if (m_resourceDictionary == null) { throw new SeeingSharpGraphicsException("Unable to load resource: Resource " + m_key.ToString() + " hos no registered ResourceDictionary!"); } if (m_device == null) { throw new SeeingSharpGraphicsException("Unable to load resource: Resource " + m_key.ToString() + " hos no registered Device!"); } try { LoadResourceInternal(m_device, m_resourceDictionary); } finally { m_markedForReloading = false; } }