Exemplo n.º 1
0
 // Copy Constructor
 public ApplicationSerial(ApplicationSerial theSerial)
 {
     this.ApplicationName = theSerial.ApplicationName;
     this.Identifier      = theSerial.Identifier;
     this.ProductId       = theSerial.ProductId;
     this.CdKey           = theSerial.CdKey;
     this.RegistryKey     = theSerial.RegistryKey;
     this.RegistryValue   = theSerial.RegistryValue;
     this.Matched         = theSerial.Matched;
 }
Exemplo n.º 2
0
 // Copy Constructor
 public ApplicationInstance(ApplicationInstance theInstance)
 {
     InstanceID              = theInstance.InstanceID;
     ApplicationID           = theInstance.ApplicationID;
     Name                    = theInstance.Name;
     InstalledOnComputer     = theInstance.InstalledOnComputer;
     InstalledOnComputerIcon = theInstance.InstalledOnComputerIcon;
     InstalledOnComputerID   = theInstance.InstalledOnComputerID;
     ComputerLocation        = theInstance.ComputerLocation;
     Serial                  = new ApplicationSerial(theInstance.Serial);
     Version                 = theInstance.Version;
     Publisher               = theInstance.Publisher;
     Guid                    = theInstance.Guid;
     Source                  = theInstance.Source;
     IsIgnored               = theInstance.IsIgnored;
 }
Exemplo n.º 3
0
 // Methods
 public ApplicationInstance()
 {
     this._instanceid              = 0;
     this._applicationID           = 0;
     this._name                    = "";
     this._installedOnComputer     = "";
     this._installedOnComputerIcon = "";
     this._installedOnComputerID   = 0;
     this._computerLocation        = "";
     this._serial                  = new ApplicationSerial();
     this._version                 = "";
     this._publisher               = "";
     this._guid                    = "";
     this._source                  = "";
     this._ignored                 = false;
 }
Exemplo n.º 4
0
        /// <summary>
        /// Equality test - check to see if this serial number object matches another
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(object obj)
        {
            if (obj != null && obj.GetType().Equals(this.GetType()))
            {
                ApplicationSerial other = obj as ApplicationSerial;

                if ((object)other != null)
                {
                    return(other.ApplicationName == ApplicationName &&
                           other.Identifier == Identifier &&
                           other.ProductId == ProductId &&
                           other.CdKey == CdKey &&
                           other.RegistryKey == RegistryKey &&
                           other.RegistryValue == RegistryValue);
                }
            }
            return(base.Equals(obj));
        }