public void SetCurrentModPack(DEModPack modPack) { foreach (var item in ModPacks) { item.ToggleOff(); } modPack.ToggleOn(); CurrentModPack = modPack; }
public static void Toggle(this DEModPack self) { if (self.Status == Status.Enable) { self.ToggleOff(); } else if (self.Status == Status.Disable) { self.ToggleOn(); } }