WixMergeRow.cs :  » Installers-Generators » WiX » Microsoft » Tools » WindowsInstallerXml » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » Installers Generators » WiX 
WiX » Microsoft » Tools » WindowsInstallerXml » WixMergeRow.cs
//-------------------------------------------------------------------------------------------------
// <copyright file="WixMergeRow.cs" company="Microsoft">
//    Copyright (c) Microsoft Corporation.  All rights reserved.
//    
//    The use and distribution terms for this software are covered by the
//    Common Public License 1.0 (http://opensource.org/licenses/cpl.php)
//    which can be found in the file CPL.TXT at the root of this distribution.
//    By using this software in any fashion, you are agreeing to be bound by
//    the terms of this license.
//    
//    You must not remove this notice, or any other, from this software.
// </copyright>
// 
// <summary>
// Specialization of a row for tracking merge statements.
// </summary>
//-------------------------------------------------------------------------------------------------

namespace Microsoft.Tools.WindowsInstallerXml{
    using System;
    using System.Globalization;
    using System.Text;
    using System.Xml;

    /// <summary>
    /// Specialization of a row for tracking merge statements.
    /// </summary>
    public sealed class WixMergeRow : Row
    {
        /// <summary>
        /// Creates a Merge row that does not belong to a table.
        /// </summary>
        /// <param name="sourceLineNumbers">Original source lines for this row.</param>
        /// <param name="tableDef">TableDefinition this Merge row belongs to and should get its column definitions from.</param>
        public WixMergeRow(SourceLineNumberCollection sourceLineNumbers, TableDefinition tableDef) :
            base(sourceLineNumbers, tableDef)
        {
        }

        /// <summary>Creates a Merge row that belongs to a table.</summary>
        /// <param name="sourceLineNumbers">Original source lines for this row.</param>
        /// <param name="table">Table this Merge row belongs to and should get its column definitions from.</param>
        public WixMergeRow(SourceLineNumberCollection sourceLineNumbers, Table table) :
            base(sourceLineNumbers, table)
        {
        }

        /// <summary>
        /// Gets and sets the id for a merge row.
        /// </summary>
        /// <value>Id for the row.</value>
        public string Id
        {
            get { return (string)this.Fields[0].Data; }
            set { this.Fields[0].Data = value; }
        }

        /// <summary>
        /// Gets and sets the language for a merge row.
        /// </summary>
        /// <value>Language for the row.</value>
        public string Language
        {
            get { return (string)this.Fields[1].Data; }
            set { this.Fields[1].Data = value; }
        }

        /// <summary>
        /// Gets and sets the directory for a merge row.
        /// </summary>
        /// <value>Direcotory for the row.</value>
        public string Directory
        {
            get { return (string)this.Fields[2].Data; }
            set { this.Fields[2].Data = value; }
        }

        /// <summary>
        /// Gets and sets the path to the merge module for a merge row.
        /// </summary>
        /// <value>Source path for the row.</value>
        public string SourceFile
        {
            get { return (string)this.Fields[3].Data; }
            set { this.Fields[3].Data = value; }
        }

        /// <summary>
        /// Gets and sets the disk id the merge module should be placed on for a merge row.
        /// </summary>
        /// <value>Disk identifier for row.</value>
        public int DiskId
        {
            get { return (int)this.Fields[4].Data; }
            set { this.Fields[4].Data = value; }
        }

        /// <summary>
        /// Gets and sets the compression value for a merge row.
        /// </summary>
        /// <value>Compression for a merge row.</value>
        public YesNoType FileCompression
        {
            get
            {
                if (null == this.Fields[5].Data)
                {
                    return YesNoType.NotSet;
                }
                else if (1 == (int)this.Fields[5].Data)
                {
                    return YesNoType.Yes;
                }
                else if (0 == (int)this.Fields[5].Data)
                {
                    return YesNoType.No;
                }
                else
                {
                    throw new InvalidOperationException(String.Format(CultureInfo.CurrentUICulture, WixStrings.EXP_MergeTableFileCompressionColumnContainsInvalidValue, this.Fields[5].Data));
                }
            }
            set
            {
                if (YesNoType.Yes == value)
                {
                    this.Fields[5].Data = 1;
                }
                else if (YesNoType.No == value)
                {
                    this.Fields[5].Data = 0;
                }
                else if (YesNoType.NotSet == value)
                {
                    this.Fields[5].Data = null;
                }
                else
                {
                    throw new InvalidOperationException(String.Format(CultureInfo.CurrentUICulture, WixStrings.EXP_CannotSetMergeTableFileCompressionColumnToInvalidValue, value));
                }
            }
        }

        /// <summary>
        /// Gets and sets the configuration data for a merge row.
        /// </summary>
        /// <value>Comma delimited string of "name=value" pairs.</value>
        public string ConfigurationData
        {
            get { return (string)this.Fields[6].Data; }
            set { this.Fields[6].Data = value; }
        }

        /// <summary>
        /// Gets and sets the primary feature for a merge row.
        /// </summary>
        /// <value>The primary feature for a merge row.</value>
        public string Feature
        {
            get { return (string)this.Fields[7].Data; }
            set { this.Fields[7].Data = value; }
        }
    }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.