예제 #1
0
파일: TestBase.cs 프로젝트: claco/tt.net
 public virtual void SetUp()
 {
     Variables = new Dictionary<string, object>()
                {
                   {"StringVariable", "HelloWorld"} 
                };
     Settings = new TemplateSettings(Variables);
     Template = new Template(Settings);
 }
		void ApplySettings (TemplateSettings settings) {
			SetBackground (settings.BackgroundColor, settings.BackgroundImage);
			SetTopBar (settings.TopBarHeight, settings.TopBarColor);
			SetBottomBar (settings.BottomBarHeight, settings.BottomBarColor);
		}
예제 #3
0
	public void Apply (TemplateSettings settings) {

		if (Snippets != null) {
			foreach (StyleSnippet snippet in Snippets)
				snippet.Apply (settings);
		}

		if (hasColor) {
			settings.SnippetColors.Add (Id, Color);
		}
		if (TextStyle != null) {
			settings.SnippetTextStyles.Add (Id, TextStyle);
		}
	}
	public abstract void Load (ScreenElement e, TemplateSettings settings);
예제 #5
0
 public Unless(TemplateSettings settings, string name, string args)
     : base(settings, name, args)
 {
     _expression = args;
 }