コード例 #1
0
ファイル: TileExporter.cs プロジェクト: modulexcite/BinDays
 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");
 }
コード例 #2
0
ファイル: TileExporter.cs プロジェクト: modulexcite/BinDays
        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");
        }