示例#1
0
        /// <summary>
        /// Ouverture du formulaire d'ajout de Client
        /// </summary>
        private void PBox_AddClient_Click(object sender, EventArgs e)
        {
            FormClients frm = new FormClients();

            frm.MdiParent = this.MdiParent;
            frm.Show();
            frm.BringToFront();
        }
示例#2
0
 public FormAnimaux(FormClients frm = null, FormRDV frmR = null)
 {
     InitializeComponent();
     if (frm != null)
     {
         frmClients = frm;
     }
     else if (frmR != null)
     {
         frmRDV = frmR;
     }
 }
示例#3
0
        /// <summary>
        /// Affichage de la forme de Gestion des Clients + écoute de la fermeture de cette fenêtre
        /// </summary>
        private void AfficherClients(object sender, EventArgs e)
        {
            FormClients frm;

            if (!dossierClientAnimauxToolStripMenuItem.Checked)
            {
                frm           = new FormClients();
                frm.MdiParent = this;
                frm.Show();
                dossierClientAnimauxToolStripMenuItem.Checked = true;
                toolStripBt_Client.Checked = true;
                frm.BringToFront();
                frm.FormClosed += FermetureFille;
            }
            else
            {
                frm = (FormClients)Array.Find(this.MdiChildren, (Form f) => f.Name == "FormClients");
                frm.BringToFront();
            }
        }