1. Christian Specht
  2. MissileSharp

Commits

Christian Specht  committed 5bf82f4 Draft

load hyperlink urls from viewmodel

  • Participants
  • Parent commits e2f5591
  • Branches default

Comments (0)

Files changed (2)

File src/MissileSharp.Launcher/ViewModels/AboutWindowViewModel.cs

View file
             get { return this.info.LegalCopyright; }
         }
 
+        public string SiteUrl
+        {
+            get { return this.info.CompanyName; }
+        }
+
+        public string LicenseUrl
+        {
+            get { return "https://bitbucket.org/christianspecht/missilesharp/raw/tip/License.txt"; }
+        }
+
         public void FollowLink(object url)
         {
             Process.Start(new ProcessStartInfo(url.ToString()));

File src/MissileSharp.Launcher/Views/AboutWindow.xaml

View file
         </Grid>
 
         <TextBlock FontSize="14" Margin="0 10">
-            More information: <Hyperlink Command="{Binding LinkCommand}" CommandParameter="http://christianspecht.de/missilesharp">http://christianspecht.de/missilesharp</Hyperlink>
+            More information: <Hyperlink Command="{Binding LinkCommand}" CommandParameter="{Binding SiteUrl}"><TextBlock Text="{Binding SiteUrl}"/></Hyperlink>
         </TextBlock>
 
         <TextBlock FontSize="14" Margin="0 10">
-            MissileSharp is licensed under the <Hyperlink Command="{Binding LinkCommand}" CommandParameter="https://bitbucket.org/christianspecht/missilesharp/raw/tip/License.txt">MIT License</Hyperlink>.
+            MissileSharp is licensed under the <Hyperlink Command="{Binding LinkCommand}" CommandParameter="{Binding LicenseUrl}">MIT License</Hyperlink>.
         </TextBlock>
         
         <Button