diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-13 18:50:24 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2017-12-13 18:50:24 +0200 |
| commit | 471daec51d0fc9437f8551d5d48c9fa2fb031871 (patch) | |
| tree | 1ecd78d48d761c18936b311d4e3d8eb8ebfb3cd1 /Software/Visual_Studio/Tango.SharedUI/Helpers | |
| parent | 2a51f05523c1397b77eca5e5188520919205638c (diff) | |
| download | Tango-471daec51d0fc9437f8551d5d48c9fa2fb031871.tar.gz Tango-471daec51d0fc9437f8551d5d48c9fa2fb031871.zip | |
Machine Studio, Dynamic Module Loading...
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Helpers')
| -rw-r--r-- | Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs b/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs index 24ce62620..c3c0f274e 100644 --- a/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs +++ b/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Reflection; using System.Text; using System.Threading.Tasks; using System.Windows.Media.Imaging; @@ -16,7 +17,7 @@ namespace Tango.SharedUI.Helpers public static BitmapSource GetImageFromResources(String imagePath) { - return new BitmapImage(new Uri(String.Format("pack://application:,,,/{0};component/{1}", typeof(ResourceHelper).Assembly, imagePath), UriKind.Absolute)); + return new BitmapImage(new Uri(String.Format("pack://application:,,,/{0};component/{1}", Assembly.GetCallingAssembly(), imagePath), UriKind.Absolute)); } } } |
