diff --git a/Torch.Server/Views/Converters/ModToIdConverter.cs b/Torch.Server/Views/Converters/ModToIdConverter.cs deleted file mode 100644 index e878140..0000000 --- a/Torch.Server/Views/Converters/ModToIdConverter.cs +++ /dev/null @@ -1,58 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Globalization; -using System.Linq; -using System.Text; -using System.Windows.Data; -using System.Threading.Tasks; -using Torch.Server.ViewModels; -using NLog; -using Torch.Collections; - -namespace Torch.Server.Views.Converters -{ - /// - /// A converter to get the index of a ModItemInfo object within a collection of ModItemInfo objects - /// - public class ModToListIdConverter : IMultiValueConverter - { - /// - /// Converts a ModItemInfo object into its index within a Collection of ModItemInfo objects - /// - /// - /// Expected to contain a ModItemInfo object at index 0 - /// and a Collection of ModItemInfo objects at index 1 - /// - /// This parameter will be ignored - /// This parameter will be ignored - /// This parameter will be ignored - /// the index of the mod within the provided mod list. - public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) - { - //if (targetType != typeof(int)) - // throw new NotSupportedException("ModToIdConverter can only convert mods into int values or vise versa!"); - if (values[0] is ModItemInfo mod && values[1] is MtObservableList modList) - { - return modList.IndexOf(mod); - } - else - { - return null; - } - } - - /// - /// It is not supported to reverse this converter - /// - /// - /// - /// - /// - /// Raises a NotSupportedException - public object[] ConvertBack(object values, Type[] targetType, object parameter, CultureInfo culture) - { - throw new NotSupportedException("ModToIdConverter can not convert back!"); - } - } -} diff --git a/Torch.Server/Views/ModListControl.xaml b/Torch.Server/Views/ModListControl.xaml index 027528a..723d2da 100644 --- a/Torch.Server/Views/ModListControl.xaml +++ b/Torch.Server/Views/ModListControl.xaml @@ -49,16 +49,6 @@ AutoGenerateColumns="False"> - - - - - - - - diff --git a/Torch.Server/Views/Resources.xaml b/Torch.Server/Views/Resources.xaml index 14154a7..b7688ab 100644 --- a/Torch.Server/Views/Resources.xaml +++ b/Torch.Server/Views/Resources.xaml @@ -18,7 +18,6 @@ - \ No newline at end of file