Exemple #1
0
        // This is a click event related to all cells
        public void clickeAddOrder(object sender, DataGridViewCellEventArgs e)
        {
            int index = e.RowIndex;

            try
            {
                // Add a new sales line on the realetd sales form
                salesForm.addNewSalesLine(index);
            }
            catch (ArgumentException)
            {
                MessageBox.Show("This product already in order form.");
            }
        }