update to v1.2.2

This commit is contained in:
NaBian committed 2018-09-18 19:22:11 +08:00
1 parent 6e01c6d7bc
commit 07762e3616
72 files changed
+907 -565

No files matched your search

+20 -19
View File
@@ -1,36 +1,37 @@
namespace HandyControlDemo.Data
{
/// <summary>
/// 包含整个程序使用的所有标识
/// </summary>
internal class MessageToken
public class MessageToken
{
public static readonly string LoadGrowlDemoCtl = nameof(LoadGrowlDemoCtl);
public static readonly string GrowlDemoCtl = nameof(GrowlDemoCtl);
public static readonly string LoadLoadingDemoCtl = nameof(LoadLoadingDemoCtl);
public static readonly string LoadingDemoCtl = nameof(LoadingDemoCtl);
public static readonly string LoadImageBrowserDemoCtl = nameof(LoadImageBrowserDemoCtl);
public static readonly string ImageBrowserDemoCtl = nameof(ImageBrowserDemoCtl);
public static readonly string LoadColorPickerDemoCtl = nameof(LoadColorPickerDemoCtl);
public static readonly string ColorPickerDemoCtl = nameof(ColorPickerDemoCtl);
public static readonly string LoadCarouselDemoCtl = nameof(LoadCarouselDemoCtl);
public static readonly string CarouselDemoCtl = nameof(CarouselDemoCtl);
public static readonly string LoadCompareSliderDemoCtl = nameof(LoadCompareSliderDemoCtl);
public static readonly string CompareSliderDemoCtl = nameof(CompareSliderDemoCtl);
public static readonly string LoadTimeBarDemoCtl = nameof(LoadTimeBarDemoCtl);
public static readonly string TimeBarDemoCtl = nameof(TimeBarDemoCtl);
public static readonly string LoadExpanderDemoCtl = nameof(LoadExpanderDemoCtl);
public static readonly string PaginationDemoCtl = nameof(PaginationDemoCtl);
public static readonly string LoadPaginationDemoCtl = nameof(LoadPaginationDemoCtl);
public static readonly string AnimationPathDemoCtl = nameof(AnimationPathDemoCtl);
public static readonly string LoadProgressBarDemoCtl = nameof(LoadProgressBarDemoCtl);
public static readonly string StepBarDemoCtl = nameof(StepBarDemoCtl);
public static readonly string LoadAnimationPathDemoCtl = nameof(LoadAnimationPathDemoCtl);
public static readonly string ButtonDemoCtl = nameof(ButtonDemoCtl);
public static readonly string LoadButtonDemoCtl = nameof(LoadButtonDemoCtl);
public static readonly string ToggleButtonDemoCtl = nameof(ToggleButtonDemoCtl);
public static readonly string LoadToggleButtonDemoCtl = nameof(LoadToggleButtonDemoCtl);
public static readonly string ExpanderDemoCtl = nameof(ExpanderDemoCtl);
public static readonly string LoadTabControlDemoCtl = nameof(LoadTabControlDemoCtl);
}
public static readonly string ProgressBarDemoCtl = nameof(ProgressBarDemoCtl);
public static readonly string TabControlDemoCtl = nameof(TabControlDemoCtl);
public static readonly string LoadShowContent = nameof(LoadShowContent);
}
}
+41
View File
@@ -0,0 +1,41 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ import namespace="System.Collections.Generic"#>
<#@ output extension=".cs" #>
<#
var controlList = new List<string>
{
"GrowlDemoCtl",
"LoadingDemoCtl",
"ImageBrowserDemoCtl",
"ColorPickerDemoCtl",
"CarouselDemoCtl",
"CompareSliderDemoCtl",
"TimeBarDemoCtl",
"PaginationDemoCtl",
"AnimationPathDemoCtl",
"StepBarDemoCtl"
};
var styleList = new List<string>
{
"ButtonDemoCtl",
"ToggleButtonDemoCtl",
"ExpanderDemoCtl",
"ProgressBarDemoCtl",
"TabControlDemoCtl"
};
#>
namespace HandyControlDemo.Data
{
public class MessageToken
{
<#foreach(var item in controlList){#>
public static readonly string <#=item#> = nameof(<#=item#>);
<#}#>
<#foreach(var item in styleList){#>
public static readonly string <#=item#> = nameof(<#=item#>);
<#}#>
public static readonly string LoadShowContent = nameof(LoadShowContent);
}
}