Ejemplo n.º 1
0
 private void modifyAttributes(AttibuteCreatedEventArgs args)
 {
     if (args.Attribute.IndexOf("Nesting") > -1 || args.Attribute.IndexOf("ViewType") > -1)
         args.AddTag(@" IsInvisible=""{" + typeof (ViewVisibilityCalculator).FullName +
                     @"}ID=..\..\@ID;ViewType=" + ViewType.Any+@"""");
     else if (args.Attribute.IndexOf("Module") > -1)
         args.AddTag(@"AllowCustom=""True"" RefNodeName=""/Application/Modules/*""");
     else if (args.Attribute.IndexOf("ID") > -1)
         args.AddTag(@" Required=""True""");
     else if (args.Attribute.IndexOf("TypeInfo") > -1)
         args.AddTag(@"Required=""True"" RefNodeName=""/Application/BOModel/Class""");
 }
Ejemplo n.º 2
0
 private void modifyAttributes(AttibuteCreatedEventArgs args)
 {
     if (args.Attribute.IndexOf("Nesting") > -1 || args.Attribute.IndexOf("ViewType") > -1)
     {
         args.AddTag(@" IsInvisible=""{" + typeof(ViewVisibilityCalculator).FullName +
                     @"}ID=..\..\@ID;ViewType=" + ViewType.Any + @"""");
     }
     else if (args.Attribute.IndexOf("Module") > -1)
     {
         args.AddTag(@"AllowCustom=""True"" RefNodeName=""/Application/Modules/*""");
     }
     else if (args.Attribute.IndexOf("ID") > -1)
     {
         args.AddTag(@" Required=""True""");
     }
     else if (args.Attribute.IndexOf("TypeInfo") > -1)
     {
         args.AddTag(@"Required=""True"" RefNodeName=""/Application/BOModel/Class""");
     }
     else if (args.Attribute.IndexOf("ViewId") > -1)
     {
         args.AddTag(@"RefNodeName=""/Application/Views/*""");
     }
 }