aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-01-08 19:00:50 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-01-08 19:00:50 +0200
commitdd4560b79e305772debf48cc76c9ba67af61f259 (patch)
tree9351aa19b976573c08cfcaafe6b976aaeda94fcf /Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs
parentce039a3181858a2b99bf58f43db90720e26089e1 (diff)
downloadTango-dd4560b79e305772debf48cc76c9ba67af61f259.tar.gz
Tango-dd4560b79e305772debf48cc76c9ba67af61f259.zip
Added code comments for:
SharedUI.
Diffstat (limited to 'Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs')
-rw-r--r--Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs b/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs
index c3c0f274e..7a861f89f 100644
--- a/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs
+++ b/Software/Visual_Studio/Tango.SharedUI/Helpers/ResourceHelper.cs
@@ -8,13 +8,25 @@ using System.Windows.Media.Imaging;
namespace Tango.SharedUI.Helpers
{
+ /// <summary>
+ /// Contains application resource helper methods.
+ /// </summary>
public static class ResourceHelper
{
+ /// <summary>
+ /// Gets the application start path.
+ /// </summary>
+ /// <returns></returns>
public static String GetApplicationStartPath()
{
return AppDomain.CurrentDomain.BaseDirectory;
}
+ /// <summary>
+ /// Gets an image from the application resources.
+ /// </summary>
+ /// <param name="imagePath">The image relative path.</param>
+ /// <returns></returns>
public static BitmapSource GetImageFromResources(String imagePath)
{
return new BitmapImage(new Uri(String.Format("pack://application:,,,/{0};component/{1}", Assembly.GetCallingAssembly(), imagePath), UriKind.Absolute));