void IMimeTypePolicyOptionsPanel.StorePolicy() { if (loaded) { if (defaultSettingsButton != null && defaultSettingsButton.Active) { policyContainer.Set <T> (null, mimeType); } else { policyContainer.Set <T> (GetPolicy(), mimeType); } } else if (hasCachedPolicy) { policyContainer.Set <T> ((T)cachedPolicy, mimeType); } }