private void buyAgainButton_Click(object sender, EventArgs e) { orderConfirmation oc = new orderConfirmation(prodId, userId); oc.Location = this.Location; oc.Show(); this.Hide(); }
private void buyButton_Click(object sender, EventArgs e) { favorites f = (favorites)this.ParentForm; orderConfirmation o = new orderConfirmation(pId, uId); o.Location = f.Location; f.Hide(); o.Show(); }
private void buyButton_Click(object sender, EventArgs e) { accountMain am = (accountMain)this.ParentForm; orderConfirmation o = new orderConfirmation(pId, uId); o.Show(); o.Location = am.Location; am.Hide(); }