Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.
Users reporting for no reason may be locked out.
using System;
using ATVO.ThemesSDK;
using ATVO.ThemeEditor.ThemeModels;
using ATVO.ThemeEditor.Scripting.DotNET;
using ATVO.ThemesSDK.Data.Results;
using ATVO.ThemesSDK.Data.Entity;
using System.Drawing;
using System.Windows;
namespace Scripts
{
	public class SC_Stand_FontSize : IScript
	{
		public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
		{ if (value == null)
				{
			    // do something appropriate, in this case probably just return nothing
			    return null;
				}
// If you bind to 'entitysessionresult_object':
var result = (IEntitySessionResult)value; 
var entity = result.Entity;
 
// If it's a team session:
// - id will be Team ID, name will be Team name
// If it's a single driver session:
// - id will be driver customer ID, name will be driver name
if (entity is ITeam)
{
return 17;
}
return 24;
		}
	}
}