/// <summary> /// Function used by grandchild to notify when a new transaction has originated from a successfull return /// </summary> /// <param name="newSaleId">Identification number of the new transaction</param> public void ShowNewReturnedTransactionInformation(String newSaleId) { if (!SystemProtocols.ApplySessionsProtocols(1, null, null)) // option only available for non basic users { // Creating a new child given the new information available SaleInformationTemplateForm child = new SaleInformationTemplateForm(newSaleId); child.Show(); children.Add(child); // adding that new child to the list of living children } }
private void SalesList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (!SystemProtocols.ApplySessionsProtocols(1, null, null)) // option only available for non basic users { if (!IsChildAlive(salesList.SelectedCells[0].Value.ToString())) // Verifying that requested child is killed or active before proceeding { // Starting or resecusating child SaleInformationTemplateForm child = new SaleInformationTemplateForm(salesList.SelectedCells[0].Value.ToString()); child.Show(); children.Add(child); // adding child to the list of children to keep track of opened auxiliary forms } } }