Example #1
0
        public void fetchUserData()
        {
            GOOD_FOODDataSet dataB = parent.getDataBase();

            foreach (GOOD_FOODDataSet.ClientiRow row in dataB.Clienti.Rows)
            {
                if (row.id_client == userID)
                {
                    client = row;
                    return;
                }
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     if (validareDate())
     {
         GOOD_FOODDataSet            dataB  = parent.getDataBase();
         GOOD_FOODDataSet.ClientiRow client = dataB.Clienti.NewClientiRow();
         client.nume         = textBox1.Text;
         client.prenume      = textBox2.Text;
         client.adresa       = textBox3.Text;
         client.parola       = textBox4.Text;
         client.email        = textBox6.Text;
         client.kcal_zilnice = 2000;
         dataB.Clienti.Rows.Add(client);
         parent.updateDataBase();
         this.Close();
     }
 }