private void addButton_Click(object sender, EventArgs e) { //Check UNIQUE if (_itemManagement.UniqueItemName(itemTextBox.Text)) { MessageBox.Show("Item already exits"); return; } //Set Price as Mandatory if (String.IsNullOrEmpty(priceTextBox.Text)) { MessageBox.Show("Price Can not be Empty!!!"); return; } //Add Item bool isAdded = _itemManagement.InsertCustomer(itemTextBox.Text, Convert.ToInt32(priceTextBox.Text)); if (isAdded) { MessageBox.Show("Saved"); } else { MessageBox.Show("Not Saved"); } //showDataGridView.DataSource = dataTable; showDataGridView.DataSource = _itemManagement.ShowItemInfo(); }