internal ExtensionOrGroup(GlobLocExtensionRow globLocExtensionRow, LookDef.STYLE _style = LookDef.STYLE.EXTENSION_ON) { id = globLocExtensionRow.ID; name = globLocExtensionRow.Name; shortName = globLocExtensionRow.ShortName; look = new LookDef(globLocExtensionRow.Look); style = _style; }
internal static void CopyGlobalExtensionFromAnotherConfig(SwitchablePolicyConfig switchablePolicyConfig, GlobLocExtensionRow origExtensionRow) { switchablePolicyConfig.SwitchablePolicy.AddSwitchablePolicyRow(origExtensionRow.ID, origExtensionRow.ShortName, origExtensionRow.Name, origExtensionRow.Look); }