public bool IsPartEnabled(IActivablePart part) { var partName = part.GetSerializableName(); var isEnabled = true; if (PartsEnabled.ContainsKey(partName)) { isEnabled = PartsEnabled[partName]; } return isEnabled; }
public bool IsPartEnabled(IActivablePart part) { var partName = part.GetSerializableName(); var isEnabled = true; if (PartsEnabled.ContainsKey(partName)) { isEnabled = PartsEnabled[partName]; } return(isEnabled); }
public static string GetSerializableName(this IActivablePart nExtModPart) { return(nExtModPart.Name.Replace(" ", "_")); }