|
using System;
using Microsoft.VisualStudio.Modeling;
using Dawliasoft.Sculpture.MoldInterfaces;
using Dawliasoft.Sculpture;
using WPFMold.Helpers;
namespace WPFMold
{
public class GenerationCondition : IOutputCondition
{
#region IGenerateCondition Members
public string ConditionId
{
get { return "GenerateUI"; }
}
public bool CanGenerate(ModelElement element)
{
DataContract dataContract = element as DataContract;
if (MoldHelper.GetPropertyValue(dataContract, "GenerateUI") == "True")
return true;
else
return false;
}
#endregion
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Program Manager in Sculpture project, Interesting in .NET Model driven development.