Example #1
0
        private void client_to_form_Click(object sender, EventArgs e)
        {
            CHM_FICHE_CLIENT fiche = new CHM_FICHE_CLIENT(CLIENT_APP_PARAM.ds_param.bsClient);

            fiche.StartPosition = FormStartPosition.CenterScreen;
            fiche.ShowDialog();
            //this.Close();
        }
Example #2
0
 private void RS_CLIENT_Click(object sender, EventArgs e)
 {
     try
     {
         if (RS_CLIENT.Text != "")
         {
             CLIENT_APP_PARAM.ds_param.bsClient.Position = CLIENT_APP_PARAM.ds_param.bsClient.Find("CODE_CLIENT", CODE_CLIENT);
             CHM_FICHE_CLIENT f = new CHM_FICHE_CLIENT(CLIENT_APP_PARAM.ds_param.bsClient);
             f.ShowDialog();
         }
         else
         {
             CHM_COMMANDE_CLIENT c = new CHM_COMMANDE_CLIENT();
             c.client_selection_event += new CHM_COMMANDE_CLIENT.client_selection(c_client_selection_event);
             c.ShowDialog();
         }
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message);
     }
 }