예제 #1
0
        public object?Convert(object?value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value == null)
            {
                return(null);
            }
            var loc = (Location)value;

            return(Path.Combine(App.ResourcesPath, "images/maps/" + Game.DB !.MapDatabase.GetMapId(loc.World, loc.Guard, loc.Section) + ".jpg"));
        }
예제 #2
0
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            var loc = (Location)value;

            return(Environment.CurrentDirectory + "/resources/images/maps/" + MapDatabase.GetMapId(loc.World, loc.Guard, loc.Section) + ".jpg");
        }