public BackupModPackImporter(DirectoryInfo modPackDirectory, ModPackJson modPackJson, bool messageInImport = false) { InitializeComponent(); MainWindow.MakeHighlander(); _modpackDirectory = modPackDirectory; _modsJsons = modPackJson.SimpleModsList; _messageInImport = messageInImport; DataContext = new BackupModpackViewModel(); ModPackName.Content = modPackJson.Name; ModpackList.ItemsSource = new List <BackupModpackItemEntry>(); MakeModpackList(); }
public BackupModPackCreator() { InitializeComponent(); _gameDirectory = new DirectoryInfo(Properties.Settings.Default.FFXIV_Directory); var modding = new Modding(_gameDirectory); _modList = modding.GetModList(); DataContext = new BackupModpackViewModel(); ModpackList.ItemsSource = new List <BackupModpackItemEntry>(); ModPackName.Text = string.Format("Backup_{0}", DateTime.Now.ToString("yyyy-MM-dd_HH-mm-ss")); // Manually add an entry for the mods that don't belong to a modpack ((List <BackupModpackItemEntry>)ModpackList.ItemsSource).Add(new BackupModpackItemEntry(UIStrings.Standalone_Non_ModPack)); foreach (var modpack in _modList.ModPacks) { var entry = new BackupModpackItemEntry(modpack.name); ((List <BackupModpackItemEntry>)ModpackList.ItemsSource).Add(entry); } ModpackList.SelectedIndex = 0; }