Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            Disease_List a = new Disease_List();

            if (textBox2.Text != string.Empty)
            {
                a.Name = textBox2.Text;
                h.Disease_Lists.InsertOnSubmit(a);
                h.SubmitChanges();
                GridViewUpdate();
            }
            else
            {
                MessageBox.Show("Please insert Name of Disease !!!");
            }
        }
 partial void UpdateDisease_List(Disease_List instance);
 partial void DeleteDisease_List(Disease_List instance);
 partial void InsertDisease_List(Disease_List instance);