public bool IsPartEnabled(IActivablePart part)
        {
            var partName = part.GetSerializableName();

            var isEnabled = true;
            if (PartsEnabled.ContainsKey(partName))
            {
                isEnabled = PartsEnabled[partName];
            }

            return isEnabled;
        }
Exemple #2
0
        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(" ", "_"));
 }