private void enchantmentImageButton_Click(object sender, RoutedEventArgs e)
        {
            if (!AppModel.gameContentLoaded)
            {
                return;
            }
            EventLogger.logEvent("enchantmentImageButton_Click", new Dictionary <string, object>()
            {
                { "enchantment", _enchantment?.Id ?? "null" }
            });
            var selectionWindow = WindowFactory.createSelectionWindow();

            selectionWindow.loadEnchantments(_enchantment?.Id);
            selectionWindow.onSelection = selectedEnchantmentId;
            selectionWindow.Show();
        }
Exemple #2
0
        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();
        }