Beispiel #1
0
        //-----------ADD Button--------------

        private void button5_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");
            newregister             th = new newregister
            {
                nid         = textBox1.Text,
                firstname   = textBox4.Text,
                lastname    = textBox3.Text,
                gender      = textBox2.Text,
                blood       = textBox6.Text,
                taxcatagory = textBox8.Text,
            };

            pd.newregisters.InsertOnSubmit(th);
            pd.SubmitChanges();

            MessageBox.Show("New Member request has been submitted");
        }
Beispiel #2
0
 partial void Updatenewregister(newregister instance);
Beispiel #3
0
 partial void Deletenewregister(newregister instance);
Beispiel #4
0
 partial void Insertnewregister(newregister instance);