Пример #1
0
        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();
        }
Пример #2
0
 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();
 }