Files
BeWoPlaner/BeWo/Converter/DownloadURLConverter.cs

24 lines
718 B
C#

using System;
using System.Globalization;
using System.Windows.Data;
using BeWo.Core;
using BS.SharedLauncher.Information;
namespace BeWo.Converter
{
public class DownloadURLConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null)
return null;
return BeWoWpfUtils.GetHTMLEncodedURL(ConnectionInformation.CoreServerAddressOrigin + value.ToString());
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
}