diff options
| author | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-05-17 18:03:58 +0300 |
|---|---|---|
| committer | Victoria Plitt <Victoria.Plitt@twine-s.com> | 2023-05-17 18:03:58 +0300 |
| commit | 8e77a83a73410f388b3a879c3082eb7bf6064657 (patch) | |
| tree | 3ee3927a57b354a0e476ae399abb91c3335c1f0a /Software/Visual_Studio/PPC | |
| parent | 11aff2c52535254745dd521322b2b7f46ae16123 (diff) | |
| download | Tango-8e77a83a73410f388b3a879c3082eb7bf6064657.tar.gz Tango-8e77a83a73410f388b3a879c3082eb7bf6064657.zip | |
Bugs - delay progress in PPC, Overview error
Related Work Items: #8408
Diffstat (limited to 'Software/Visual_Studio/PPC')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs index f9ced3719..75846431f 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Converters/LiquidTypeToBrushConverter.cs @@ -24,13 +24,7 @@ namespace Tango.PPC.UI.Converters } case BL.Enumerations.LiquidTypes.Cleaner: { - ImageBrush cleanerBrush = new ImageBrush() { Stretch = Stretch.None, TileMode = TileMode.Tile, ViewportUnits = BrushMappingMode.Absolute }; - BitmapSource bit_source = ResourceHelper.GetImageFromResources(@"Images/cl-full.png"); - var targetBitmap = new WriteableBitmap(new TransformedBitmap(bit_source, new ScaleTransform(0.3, 0.3))); - - cleanerBrush.ImageSource = targetBitmap; - cleanerBrush.Viewport = new System.Windows.Rect(0, 0, targetBitmap.Width, targetBitmap.Height); - return cleanerBrush; + return Application.Current.Resources["TangoCleanerBrush"] as Brush; } case BL.Enumerations.LiquidTypes.Yellow: return Application.Current.Resources["TangoYellowInkBrush"] as Brush; |
