Beispiel #1
0
        /// <summary>
        /// CONSTRUCTOR
        /// </summary>
        public Pathway(CompoundLibrary tag, string name, string id)
        {
            if (tag != null)
            {
                this.Libraries.Add(tag);
            }

            this.Id           = id;
            this._defaultName = !string.IsNullOrWhiteSpace(name) ? name : "Compounds not assigned to any pathway";
        }
Beispiel #2
0
        /// <summary>
        /// CONSTRUCTOR
        /// </summary>
        public Compound(CompoundLibrary tag, string name, string id, decimal mz)
        {
            if (tag != null)
            {
                this.Libraries.Add(tag);
            }

            this._defaultName = RemoveHtml(name);
            this.Id           = id;
            this.Mass         = mz;
        }