Пример #1
0
        public DB_Helper getInstance()
        {
            if (instance == null)
            {
                instance = new DB_Helper();
            }

            return(instance);
        }
Пример #2
0
 private void DB_Delete()
 {
     DB_Helper.Query_Delete(textBox1.Text);
 }
Пример #3
0
 private void DB_Update()
 {
     DB_Helper.Query_Update(textBox1.Text, textBox2.Text);
 }
Пример #4
0
 private void DB_Insert()
 {
     DB_Helper.Query_Insert(textBox1.Text, textBox2.Text);
 }
Пример #5
0
 private void DB_Select()
 {
     DB_Helper.Query_Select();
     dataGridView1.DataSource = DB_Helper.ds;
     dataGridView1.DataMember = "TB_CUST";
 }
Пример #6
0
 public Form1()
 {
     InitializeComponent();
     dh = new DB_Helper().getInstance();
 }