Esempio n. 1
0
 private void btn_AJOUTER_ARTICLE_Click(object sender, EventArgs e)
 {
     try
     {
         CHM_FRM_SELECTION_ARTICLE f = new CHM_FRM_SELECTION_ARTICLE(Convert.ToDecimal(CLIENT_APP_PARAM.CODE_MAG), "");
         f.on_select += new CHM_FRM_SELECTION_ARTICLE.selection_article(f_on_select);
         f.ShowDialog();
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message);
     }
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         if (cbx_magasin.SelectedValue != null)
         {
             CHM_FRM_SELECTION_ARTICLE f = new CHM_FRM_SELECTION_ARTICLE((decimal)cbx_magasin.SelectedValue, cbx_magasin.Text);
             f.on_select += new CHM_FRM_SELECTION_ARTICLE.selection_article(f_on_select);
             f.ShowDialog();
         }
         else
         {
             MessageBox.Show("Veuillez sélectionner un magasin.");
         }
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message);
     }
 }