Пример #1
0
        private void ToolStripMenuItemNewEnt_Click(object sender, EventArgs e)
        {
            FormEntreprise entreprise = new FormEntreprise();

            entreprise.MdiParent = this;
            entreprise.Show();
        }
Пример #2
0
        private void buttonListEntrepriseAfficher_Click(object sender, EventArgs e)
        {
            int value;

            Int32.TryParse(comboBoxListEntreprise.SelectedValue.ToString(), out value);
            entrepriseSelectionnee = EntrepriseManager.GetEntreprise(value);
            if (value != -1)
            {
                FormEntreprise formEntreprise = new FormEntreprise(entrepriseSelectionnee);
                formEntreprise.MdiParent = this.MdiParent;
                formEntreprise.Show();
                this.Close();
            }
        }