/// <summary>
 /// Default ctor
 /// </summary>
 internal LicenseAgreementAcceptanceForm(LicenseAgreement license, IEnumerable<string> libraryNames)
 {
     this.license = license;
     InitializeComponent();
     if ((license != null) && (libraryNames != null))
     {
         this.Text = license.Name;
         tbAgreement.Text = license.Text.Replace("\n", Environment.NewLine);
         foreach (var name in libraryNames)
         {
             lbLibraries.Items.Add(name);
         }
     }
 }
示例#2
0
        /// <summary>
        /// Default ctor
        /// </summary>
        public LibraryNode(string dllName, string name, LicenseAgreement license, params LibraryNode[] dependingOn)
        {
            this.dllName = dllName;
            this.license = license;
            this.dependingOnOther = new List<LibraryNode>();
            if (null != dependingOn)
            {
                this.dependingOnOther.AddRange(dependingOn);
            }

            this.dependingOnMe = new List<LibraryNode>();
            this.Text = name;
            this.SubItems.Add(new ListViewSubItem(this, (license != null) ? license.Name : "-"));

            foreach (LibraryNode other in this.dependingOnOther)
            {
                other.dependingOnMe.Add(this);
            }
        }