private void buttonHistory_Click(object sender, EventArgs e) { var allShoppingCartsForm = new ShowAllCartsForm(_clientService.GetByName(treeViewClients.SelectedNode.Text).Id); allShoppingCartsForm.Show(); }
private void buttonShowHistory_Click(object sender, EventArgs e) { var showCartsForm = new ShowAllCartsForm(_currentClient.Id); showCartsForm.ShowDialog(); }