private void addCustomer() { Customer c1 = new Customer(); c1.Name = textBox1.Text; c1.Email = textBox2.Text; c1.Phone = textBox3.Text; c1.Remark = textBox4.Text; InsertSQL add = new InsertSQL(); int editrecord = add.addNewCustomer(c1); MessageBox.Show(" Your seccusful"); this.Close(); }