From 2a1b12cb3d37973efa0bf1163c424bb8207bcbf7 Mon Sep 17 00:00:00 2001 From: Luiz Henrique Cassettari Date: Tue, 19 Nov 2024 17:21:08 -0300 Subject: [PATCH] Remove Example Console --- ricaun.Revit.UI.Example/Revit/AppTheme.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ricaun.Revit.UI.Example/Revit/AppTheme.cs b/ricaun.Revit.UI.Example/Revit/AppTheme.cs index 7a4a9a1..d8aa158 100644 --- a/ricaun.Revit.UI.Example/Revit/AppTheme.cs +++ b/ricaun.Revit.UI.Example/Revit/AppTheme.cs @@ -65,14 +65,14 @@ public Result OnStartup(UIControlledApplication application) { var buttonTiff = ribbonPanel.CreatePushButton("Grey") .SetLargeImage("Resources/Cube-Grey-Light.tiff"); - if (buttonTiff.LargeImage is System.Windows.Media.Imaging.BitmapSource largeImage) - { - System.Console.WriteLine($"{largeImage.GetType().Name} | {largeImage.Width:0}x{largeImage.Height:0} ({largeImage.PixelWidth}x{largeImage.PixelHeight}) {largeImage.DpiX:0}:{largeImage.DpiY:0}"); - } - if (buttonTiff.Image is System.Windows.Media.Imaging.BitmapSource smallImage) - { - System.Console.WriteLine($"{smallImage.GetType().Name} | {smallImage.Width:0}x{smallImage.Height:0} ({smallImage.PixelWidth}x{smallImage.PixelHeight}) {smallImage.DpiX:0}:{smallImage.DpiY:0}"); - } + //if (buttonTiff.LargeImage is System.Windows.Media.Imaging.BitmapSource largeImage) + //{ + // System.Console.WriteLine($"{largeImage.GetType().Name} | {largeImage.Width:0}x{largeImage.Height:0} ({largeImage.PixelWidth}x{largeImage.PixelHeight}) {largeImage.DpiX:0}:{largeImage.DpiY:0}"); + //} + //if (buttonTiff.Image is System.Windows.Media.Imaging.BitmapSource smallImage) + //{ + // System.Console.WriteLine($"{smallImage.GetType().Name} | {smallImage.Width:0}x{smallImage.Height:0} ({smallImage.PixelWidth}x{smallImage.PixelHeight}) {smallImage.DpiX:0}:{smallImage.DpiY:0}"); + //} } ribbonPanel.RowStackedItems(