39 lines
1.5 KiB
C#
39 lines
1.5 KiB
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using CzokoŚmieciarka.DataModels.Enums;
|
|||
|
using CzokoŚmieciarka.DataModels.GeneralModels.Models;
|
|||
|
using CzokoŚmieciarka.DataModels.Interfaces;
|
|||
|
using CzokoŚmieciarka.DataModels.Interfaces.TrashCans;
|
|||
|
using CzokoŚmieciarka.DataModels.Models;
|
|||
|
using CzokoŚmieciarka.MonoGame.Interfaces;
|
|||
|
|
|||
|
namespace CzokoŚmieciarka.MonoGame.Models
|
|||
|
{
|
|||
|
class WPFDump : ADump, IWPFObject
|
|||
|
{
|
|||
|
public string ImagePath { get; set; }
|
|||
|
|
|||
|
public WPFDump(ITypeOfGarbage typeofGarbage, int maxVolume, Coords localization) : base ( typeofGarbage, maxVolume, localization)
|
|||
|
{
|
|||
|
switch (typeofGarbage.GarbageType)
|
|||
|
{
|
|||
|
case GarbageType.Glass:
|
|||
|
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\Dumps\glass.png";
|
|||
|
break;
|
|||
|
case GarbageType.PlasticMetal:
|
|||
|
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\Dumps\plasticmetal.png";
|
|||
|
break;
|
|||
|
case GarbageType.Organic:
|
|||
|
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\Dumps\organic.png";
|
|||
|
break;
|
|||
|
case GarbageType.Paper:
|
|||
|
ImagePath = AppDomain.CurrentDomain.BaseDirectory + @"..\..\Images\Dumps\paper.png";
|
|||
|
break;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|