//----------insert tax button----------- private void button9_Click(object sender, EventArgs e) { DataClasses1DataContext pd = new DataClasses1DataContext(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=C:\Users\ANIK\Documents\incometax.mdf;Integrated Security=True;Connect Timeout=30"); taxrate tr = new taxrate { tax_catagory = textBox4.Text, catagory_code = textBox5.Text, income_range = textBox6.Text, tax_rate = textBox7.Text }; pd.taxrates.InsertOnSubmit(tr); pd.SubmitChanges(); UpdateTable4(); UpdateTable9(); MessageBox.Show("New Record Added"); }
partial void Deletetaxrate(taxrate instance);
partial void Updatetaxrate(taxrate instance);
partial void Inserttaxrate(taxrate instance);