protected internal override string GetAddObjectReference(qxDotNet.Core.Object obj)
 {
     if (ItemOptions.ContainsKey((LayoutItem)obj) && ItemOptions[(LayoutItem)obj] != null)
     {
         return(GetReference() + ".add(" + obj.GetReference() + "," + base.ItemOptions[(LayoutItem)obj].ToString() + ");\n");
     }
     else
     {
         return(GetReference() + ".add(" + obj.GetReference() + ");\n");
     }
 }
Пример #2
0
        internal string GetExpression(qxDotNet.Core.Object target)
        {
            var sb = new StringBuilder();

            sb.Append(target.GetReference());
            sb.Append(".");
            sb.Append(MethodName);
            sb.Append("(");
            var needComma = false;

            foreach (var prm in Parameters)
            {
                if (needComma)
                {
                    sb.Append(",");
                }
                needComma = true;
                sb.Append(prm.GetExpression());
            }
            sb.Append(");\n");
            return(sb.ToString());
        }
 protected internal override string GetRemoveObjectReference(qxDotNet.Core.Object obj)
 {
     return(GetReference() + ".remove(" + obj.GetReference() + ");\n");
 }