/// <summary> /// Sends the user to the form with the books. /// There can be created new books. /// </summary> /// <param name="sender">Contains a reference to the control that raised the event.</param> /// <param name="e">Contains the event data.</param> private void btnPurchaseItems_Click(object sender, EventArgs e) { moveSidePanel(btnPurchaseItems); UC_PurchaseDetails ucpd = new UC_PurchaseDetails(); AddControlsToPanel(ucpd); }
private void btnPurchase_Click(object sender, EventArgs e) { moveSidePanel(btnPurchase); UC_PurchaseDetails up = new UC_PurchaseDetails(); AddControlsToPanel(up); }