Author: rgardler
Date: Wed Dec  5 00:54:24 2012
New Revision: 1417254

URL: http://svn.apache.org/viewvc?rev=1417254&view=rev
Log:
make the property code simpler and add the ability to generate urls for Win8 
Store applications

Modified:
    wookie/trunk/connector/CSharp/Win8/WookieService/Widget.cs

Modified: wookie/trunk/connector/CSharp/Win8/WookieService/Widget.cs
URL: 
http://svn.apache.org/viewvc/wookie/trunk/connector/CSharp/Win8/WookieService/Widget.cs?rev=1417254&r1=1417253&r2=1417254&view=diff
==============================================================================
--- wookie/trunk/connector/CSharp/Win8/WookieService/Widget.cs (original)
+++ wookie/trunk/connector/CSharp/Win8/WookieService/Widget.cs Wed Dec  5 
00:54:24 2012
@@ -25,53 +25,29 @@ namespace WookieService
         private String desc;
         private String guid;
 
-        public Widget(String guid, String title, String desc, String icon)
+        public Widget(String guid, String title, String desc, String icon, 
String path, String contentFile)
         {
-            this.setGuid(guid);
-            this.setTitle(title);
-            this.setDescription(desc);
-            this.setIcon(icon);
+            this.Guid = guid;
+            this.Title = title;
+            this.Description = desc;
+            this.Icon = icon;
+            this.Path = path;
+            this.ContentFile = contentFile;
+        }
+
+        public String Guid { get; set; }
+        public String Title { get; set; }
+        public String Description { get; set; }
+        public String Icon { get; set; }
+        public String Path { get; set; } // the path to the widget files
+        public String ContentFile { get; set; } // the filename for the 
content file
+
+        public String Source 
+        {
+            get
+            {
+                return "ms-appx-web:///widget/" + this.Path + "/" + 
this.ContentFile;
+            }
         }
-
-        public void setGuid(String guid) 
-        {
-            this.guid = guid;
-        }
-
-        public String getGuid() 
-        {
-            return this.guid;
-        }
-
-        public void setTitle(String title)
-        {
-            this.title = title;
-        }
-
-        public String getTitle()
-        {
-            return this.title;
-        }
-
-        public void setDescription(String desc)
-        {
-            this.desc = desc;
-        }
-
-        public String getDescription()
-        {
-            return this.desc;
-        }
-
-        public void setIcon(String icon)
-        {
-            this.icon = icon;
-        }
-
-        public String getIcon()
-        {
-            return this.icon;
-        }
-
     }
 }


Reply via email to