private void AddModPackButton_Click(object sender, RoutedEventArgs e) { Modpack modpack = new Modpack("New modpack"); profile.AddModpack(modpack); modpack.Pack(); ModpacksListBox.Items.Add(modpack.Name); profile.SaveSettings(); }
private void SaveModpackButton_Click(object sender, RoutedEventArgs e) { currentModpack.Name = ModpackNameTextBox.Text; currentModpack.CopyTo(sourceModpack); sourceModpack.Pack(); foreach (var pack in sourceModpack.ChildrenModpacks) { pack.Pack(); } Close(); }