Try this:
Add the following C# using statements before the Public Class declaration.
using Oracle.DataAccess.Client;
using Oracle.DataAccess.Types;
Add the following C# code in between the
private void button1_Click(object sender, EventArgs e)
{ and } statements.
string oradb = "Data Source=ORCL;User Id=hr;Password=hr;";
OracleConnection conn = new OracleConnection(oradb);
conn.Open();
OracleCommand cmd = new OracleCommand();
cmd.Connection = conn;
cmd.CommandText = "Insert into Table1('Name') VALUES(txtName.text) WHERE id = 1";
Int rowsUpdated = cmd.ExecuteNonQuery();
If (rowsUpdated == 0)
MessageBox.Show("Record not inserted");
Else
MessageBox.Show("Success!");
conn.Dispose();
Hope it helps!