private void cmdUpdate_Click(object sender, System.EventArgs e)
        {
            PKDouble pkd = new PKDouble();

            FillObjectFromScreen(pkd);
            PersistDAL.Update(pkd);
            FillScreenFromObject(pkd);
        }
 private void cmdDelete_Click(object sender, System.EventArgs e)
 {
     PKDouble pkd=new PKDouble();
     FillObjectFromScreen(pkd);
     PersistDAL.Delete(pkd);
     txtID1.Text="";
     txtID2.Text="";
     txtDonnee.Text="";
 }
        private void cmdDelete_Click(object sender, System.EventArgs e)
        {
            PKDouble pkd = new PKDouble();

            FillObjectFromScreen(pkd);
            PersistDAL.Delete(pkd);
            txtID1.Text    = "";
            txtID2.Text    = "";
            txtDonnee.Text = "";
        }
 void FillScreenFromObject(PKDouble pkd)
 {
     txtID1.Text    = pkd.id1.ToString();
     txtID2.Text    = pkd.id2.ToString();
     txtDonnee.Text = pkd.donnee;
 }
 void FillObjectFromScreen(PKDouble pkd)
 {
     pkd.id1    = int.Parse(txtID1.Text);
     pkd.id2    = short.Parse(txtID2.Text);
     pkd.donnee = txtDonnee.Text;
 }
 private void cmdInsert_Click(object sender, System.EventArgs e)
 {
     PKDouble pkd=new PKDouble();
     FillObjectFromScreen(pkd);
     PersistDAL.Insert(pkd);
     FillScreenFromObject(pkd);
 }
 void FillScreenFromObject(PKDouble pkd)
 {
     txtID1.Text=pkd.id1.ToString();
     txtID2.Text=pkd.id2.ToString();
     txtDonnee.Text=pkd.donnee;
 }
 void FillObjectFromScreen(PKDouble pkd)
 {
     pkd.id1=int.Parse(txtID1.Text);
     pkd.id2=short.Parse(txtID2.Text);
     pkd.donnee=txtDonnee.Text;
 }