private void button_insert_Click(object sender, EventArgs e) { TB_CUST temp = new TB_CUST(); temp.CUST_ID = textBox1.Text; temp.BIRTH_DT = textBox2.Text; Data_Manger.tB_CUSTs.Add(temp); Data_Manger.Save(); DataLoad(); }
private void DataLoad() { Data_Manger.Load(); dataGridView1.DataSource = Data_Manger.tB_CUSTs; }