Example #1
0
        private void but_add_Click(object sender, EventArgs e)
        {
            NewProduct newProduct = new NewProduct(ref a);

            if (DialogResult.OK == newProduct.ShowDialog())
            {
                listView_product.Items.Clear();
                FillDB();
            }
        }
Example #2
0
        /// <summary>
        /// Function for adding new client.
        /// </summary>
        /// <param name="sender">object sender.</param>
        /// <param name="e">e event.</param>
        private void buttonAddNewCustomer_Click(object sender, EventArgs e)
        {
            NewProduct newProduct = new NewProduct();

            newProduct.ShowDialog();
        }