private void ClearProduct_Click(object sender, EventArgs e) { codeProduct.Clear(); NameProduct.Clear(); quantityPtoduct.Clear(); idProduct.Clear(); }
public bool Equals(Product other) { if (other == null) { return(false); } else { if (!TypeProduct.Equals(other.TypeProduct)) { return(false); } if (!NameProduct.Equals(other.NameProduct)) { return(false); } if (!PriceProduct.Equals(other.PriceProduct)) { return(false); } if (!QuantityProduct.Equals(other.QuantityProduct)) { return(false); } } return(true); }
public override int GetHashCode() { return(NameProduct.ToArray()[0] * 100 + (int)MessageType * 10 + (int)MessageTopic); }
public bool Equals(Category category) { return(category != null && NameProduct != null && NameProduct.Equals(category.NameProduct) && MessageTopic == category.MessageTopic && MessageType == category.MessageType); }