示例#1
0
 public Drug(int id, string name, string type, int price, Dfactory dfactory, int amount)
 {
     this.id       = id;
     this.name     = name;
     this.type     = type;
     this.price    = price;
     this.dfactory = dfactory;
     this.amount   = amount;
 }
示例#2
0
        public override bool Equals(object obj)
        {
            Dfactory df = (Dfactory)obj;

            if (this.id == df.id)
            {
                return(true);
            }
            return(false);
        }
示例#3
0
 public Drug()
 {
     this.name     = this.type = null;
     this.id       = this.amount = this.price = -1;
     this.dfactory = new Dfactory();
 }