예제 #1
0
파일: ProductForm.cs 프로젝트: IrisaW/mine
        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();
            }
        }
예제 #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();
        }