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 System.Windows.Media;
namespace Scripts
{
public class ScheduleBackground : IScript
{
private Color CurrentColor = (Color) ColorConverter.ConvertFromString("#434343FF");
private Color NotCurrentColor = Colors.Transparent;
public object Execute(ThemeContentItem item, object value, string parameter, ISimulation sim)
{
if (value != null)
{
if (value.ToString() == "YES")
return CurrentColor;
}
return NotCurrentColor;
}
}
}