Ejemplo n.º 1
0
        /// <summary>
        /// Decompile the UserGroup table.
        /// </summary>
        /// <param name="table">The table to decompile.</param>
        private void DecompileUserGroupTable(Table table)
        {
            foreach (Row row in table.Rows)
            {
                Util.User user = (Util.User) this.Core.GetIndexedElement("User", (string)row[0]);

                if (null != user)
                {
                    Util.GroupRef groupRef = new Util.GroupRef();

                    groupRef.Id = (string)row[1];

                    user.AddChild(groupRef);
                }
                else
                {
                    this.Core.OnMessage(WixWarnings.ExpectedForeignRow(row.SourceLineNumbers, table.Name, row.GetPrimaryKey(DecompilerCore.PrimaryKeyDelimiter), "Group_", (string)row[0], "Group"));
                }
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Decompile the UserGroup table.
        /// </summary>
        /// <param name="table">The table to decompile.</param>
        private void DecompileUserGroupTable(Table table)
        {
            foreach (Row row in table.Rows)
            {
                Util.User user = (Util.User)this.Core.GetIndexedElement("User", (string)row[0]);

                if (null != user)
                {
                    Util.GroupRef groupRef = new Util.GroupRef();

                    groupRef.Id = (string)row[1];

                    user.AddChild(groupRef);
                }
                else
                {
                    this.Core.OnMessage(WixWarnings.ExpectedForeignRow(row.SourceLineNumbers, table.Name, row.GetPrimaryKey(DecompilerCore.PrimaryKeyDelimiter), "Group_", (string)row[0], "Group"));
                }
            }
        }