1
1
using System ;
2
+ using System . Configuration ;
2
3
using System . Windows ;
3
4
using System . Windows . Controls ;
4
5
using System . Windows . Input ;
@@ -22,14 +23,14 @@ public DocumentationLink(DocumentationLinkType type, string url, string label)
22
23
public static DocumentationLink WikiLink ( string page , string label )
23
24
{
24
25
return new DocumentationLink ( DocumentationLinkType . Wiki ,
25
- "https://github.com/ButchersBoy/MaterialDesignInXamlToolkit /wiki/" + page , label ) ;
26
+ $ " { ConfigurationManager . AppSettings [ "GitHub" ] } /wiki/" + page , label ) ;
26
27
}
27
28
28
29
public static DocumentationLink StyleLink ( string nameChunk )
29
30
{
30
31
return new DocumentationLink (
31
32
DocumentationLinkType . StyleSource ,
32
- $ "https://github.com/ButchersBoy/MaterialDesignInXamlToolkit /blob/master/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.{ nameChunk } .xaml",
33
+ $ "{ ConfigurationManager . AppSettings [ "GitHub" ] } /blob/master/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.{ nameChunk } .xaml",
33
34
nameChunk ) ;
34
35
}
35
36
@@ -39,7 +40,7 @@ public static DocumentationLink ApiLink<TClass>(string subNamespace)
39
40
40
41
return new DocumentationLink (
41
42
DocumentationLinkType . ControlSource ,
42
- $ "https://github.com/ButchersBoy/MaterialDesignInXamlToolkit /blob/master/MaterialDesignThemes.Wpf/{ subNamespace } /{ typeName } .cs",
43
+ $ "{ ConfigurationManager . AppSettings [ "GitHub" ] } /blob/master/MaterialDesignThemes.Wpf/{ subNamespace } /{ typeName } .cs",
43
44
typeName ) ;
44
45
}
45
46
@@ -50,7 +51,7 @@ public static DocumentationLink ApiLink<TClass>()
50
51
51
52
return new DocumentationLink (
52
53
DocumentationLinkType . ControlSource ,
53
- $ "https://github.com/ButchersBoy/MaterialDesignInXamlToolkit /blob/master/MaterialDesignThemes.Wpf/{ typeName } .cs",
54
+ $ "{ ConfigurationManager . AppSettings [ "GitHub" ] } /blob/master/MaterialDesignThemes.Wpf/{ typeName } .cs",
54
55
typeName ) ;
55
56
}
56
57
@@ -67,7 +68,7 @@ public static DocumentationLink DemoPageLink<TDemoPage>(string label)
67
68
68
69
return new DocumentationLink (
69
70
DocumentationLinkType . DemoPageSource ,
70
- $ "https://github.com/ButchersBoy/MaterialDesignInXamlToolkit /blob/master/MainDemo.Wpf/{ typeof ( TDemoPage ) . Name } .{ ext } ",
71
+ $ "{ ConfigurationManager . AppSettings [ "GitHub" ] } /blob/master/MainDemo.Wpf/{ typeof ( TDemoPage ) . Name } .{ ext } ",
71
72
label ?? typeof ( TDemoPage ) . Name ) ;
72
73
}
73
74
0 commit comments