Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            try
            {
                if (buttonENREGISTRER.Enabled == false)
                {
                    Application.DoEvents();
                    CHM_FICHE_BON_LIVRAISON fiche = new CHM_FICHE_BON_LIVRAISON(CODE_COMMANDE.Text, dt_lg_commande);
                    fiche.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                    fiche.Show();
                }
                else
                {
                    MessageBox.Show("Veuillez tout d'abord enregistrer la commande", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                }
            }
            catch (Exception er)
            {
                MessageBox.Show(er.Message, "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }