Exemple #1
0
        public static void DeleteOrderFromDB(string orderID)
        {
            DataHandler.ResetDataSet();
            DataSet ds = DataHandler.GetDataSet("tblOrder");

            DataHandler.DeleteRow("tblOrder", orderID);

            InstalledProduct.DeleteInstalledProductFromDB(orderID);
        }
Exemple #2
0
        public override bool Equals(object obj)
        {
            if (obj != null)
            {
                if (!(obj is InstalledProduct))
                {
                    InstalledProduct installedProduct = obj as InstalledProduct;

                    return((this.orderID == installedProduct.orderID) && (this.productCode == installedProduct.productCode) && (this.stillInstalled == installedProduct.stillInstalled));
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }