public StandardModpackFilesReview(StandardModpackItemEntry entry) { _entry = entry; InitializeComponent(); ConfirmButton.IsEnabled = false; ItemName.Content = _entry.Item.Name + " - " + StandardModpackCreator.GetNiceLevelName(_entry.Level) + " Level"; FilesReviewLabel.Content = "[Loading]"; SharedInit(); LoadFiles(); }
public StandardModpackSharedItems(IItem item, XivDependencyLevel level) { _item = item; _level = level; InitializeComponent(); ItemName.Content = _item.Name + " - " + StandardModpackCreator.GetNiceLevelName(_level) + " Level"; ItemLevel.Content = "Review Affected Items"; NextButton.Click += NextButton_Click; BackButton.Click += BackButton_Click; LoadItems(); }
private async Task LoadItems() { var im = (IItemModel)_item; var root = _item.GetRoot(); List <IItemModel> items; if (_level == XivDependencyLevel.Model || _level == XivDependencyLevel.Root) { items = await im.GetSharedModelItems(); } else { items = await im.GetSharedMaterialItems(); } foreach (var i in items) { SharedItemsListBox.Items.Add(i.Name); } SharedItemsLabel.Content = "Modifications at the " + StandardModpackCreator.GetNiceLevelName(_level) + " level will affect (at least) the following [" + items.Count + "] item(s):"; }
public StandardModpackFileSelect(IItem item, XivDependencyLevel level) { DataContext = this; InitializeComponent(); _item = item; _level = level; ItemName.Content = _item.Name + " - " + StandardModpackCreator.GetNiceLevelName(_level) + " Level"; ItemLevel.Content = "Select " + StandardModpackCreator.GetNiceLevelName(_level) + " Files"; FilesListBox.ItemsSource = Files; FilesListBox.DisplayMemberPath = "DisplayName"; FilesListBox.SelectedValuePath = "File"; FilesListBox.SelectionMode = SelectionMode.Multiple; NextButton.IsEnabled = false; FilesListBox.SelectionChanged += FilesListBox_SelectionChanged; NextButton.Click += NextButton_Click; BackButton.Click += BackButton_Click; LoadItems(); }
public StandardModpackEntryControl(StandardModpackItemEntry entry) { Entry = entry; InitializeComponent(); ItemNameLabel.Content = entry.Item.Name; if (entry.Level == xivModdingFramework.Cache.XivDependencyLevel.Root) { ItemLevelLabel.Content = "Selected All Files - [" + Entry.AllFiles.Count + "] Total File(s)"; } else { ItemLevelLabel.Content = "Selected [" + Entry.MainFiles.Count + "] " + StandardModpackCreator.GetNiceLevelName(entry.Level) + " File(s) - [" + Entry.AllFiles.Count + "] Total File(s)"; } RemoveButton.Click += RemoveButton_Click; }