public void ExportStandard(TileData data) { var tile = new Standard { ActualDay = data.Date.DayOfWeek.ToRelativeString().ToUpper(), HasGeneral = data.IsGeneralWaste, HasRecycling = data.IsRecycling, HasGreen = data.IsGreen }; Export(tile, 336, 336, "/Shared/ShellContent/StandardTile.jpg"); }
public void ExportWide(TileData data) { var tile = new Wide { ActualDate = data.Date.ToRelativeString().ToUpper(), ActualDay = data.Date.DayOfWeek.ToString().ToUpper(), HasGeneral = data.IsGeneralWaste, HasRecycling = data.IsRecycling, HasGreen = data.IsGreen }; Export(tile, 691, 336, "/Shared/ShellContent/WideTile.jpg"); }
public void ExportSmall(TileData data) { var tile = new Small { ActualDay = data.Date.DayOfWeek.ToString().Substring(0, 3).ToUpper(), HasGeneral = data.IsGeneralWaste, HasRecycling = data.IsRecycling, HasGreen = data.IsGreen, IsBold = data.Date == DateTime.Today || data.Date == DateTime.Today.AddDays(1), IsAdvertisement = LicenseInformation.IsTrial }; Export(tile, 159, 159, "/Shared/ShellContent/SmallTile.jpg"); }
public void Export(CollectionDay day) { var data = new TileData { Date = day.Date, IsGeneralWaste = day.Bins.Any(x => x.BinType == BinType.GeneralWaste), IsRecycling = day.Bins.Any(x => x.BinType == BinType.Recycling), IsGreen = day.Bins.Any(x => x.BinType == BinType.Green) }; ExportSmall(data); ExportStandard(data); ExportWide(data); }