private void armorPropertyButton_Click(Armorproperty armorProperty) { if (!AppModel.gameContentLoaded) { return; } EventLogger.logEvent("armorPropertyButton_Click", new Dictionary <string, object>() { { "armorProperty", armorProperty.Id } }); var selectionWindow = WindowFactory.createSelectionWindow(); selectionWindow.loadArmorProperties(armorProperty.Id); selectionWindow.onSelection = newArmorPropertyId => { this.replaceArmorProperty(armorProperty.Id, newArmorPropertyId); }; //selectionWindow.onSelection = selectedArmorPropertyId; selectionWindow.Show(); }
private void armorPropertyRemoveButton_Click(Armorproperty armorProperty) { if (_item == null) { return; } if (armorProperty == null) { return; } EventLogger.logEvent("armorPropertyRemoveButton_Click", new Dictionary <string, object>() { { "armorProperty", armorProperty.Id } }); var list = _item !.Armorproperties.ToList(); list.Remove(armorProperty); _item !.Armorproperties = list.ToArray(); updateArmorPropertiesUI(); }
private void armorPropertyButton_Click(Armorproperty armorProperty) { if (!ImageUriHelper.gameContentLoaded) { return; } EventLogger.logEvent("armorPropertyButton_Click", new Dictionary <string, object>() { { "armorProperty", armorProperty.Id } }); var selectionWindow = new SelectionWindow(); selectionWindow.Owner = Application.Current.MainWindow; selectionWindow.loadArmorProperties(armorProperty.Id); selectionWindow.onSelection = newArmorPropertyId => { this.replaceArmorProperty(armorProperty.Id, newArmorPropertyId); }; //selectionWindow.onSelection = selectedArmorPropertyId; selectionWindow.Show(); }