示例#1
0
        public void modifierObj(metier m, Object ob)
        {
            IhmManager.ajouter = false;
            Form form;

            switch (m)
            {
            case metier.Projet:
                IhmManager.projetSelect = (Projet)ob;
                form = new FenCrudProjet();
                form.ShowDialog();
                break;

            case metier.Personnel:
                IhmManager.persSelect = (Personnel)ob;
                form = new FenCrudPersonnel();
                form.ShowDialog();
                break;

            case metier.FonctionGen:
                IhmManager.fctGenSelect = (FonctionGenerique)ob;
                form = new FenCrudFctGen();
                form.ShowDialog();
                break;

            case metier.IoPhysGen:
                IhmManager.ioPhysGenSelect = (IoPhysiqueGenerique)ob;
                form = new FenCrudIoPhysiqueGen();
                form.ShowDialog();
                break;

            case metier.CritGen:
                IhmManager.critGenSelect = (CritereGenerique)ob;
                form = new FenCrudCritGen();
                form.ShowDialog();
                break;

            default:
                break;
            }
        }
示例#2
0
        public void ajouterObj(metier m)
        {
            IhmManager.ajouter = true;
            Form form;

            switch (m)
            {
            case metier.Projet:
                form = new FenCrudProjet();
                form.ShowDialog();
                break;

            case metier.Personnel:
                form = new FenCrudPersonnel();
                form.ShowDialog();
                break;

            case metier.FonctionGen:
                form = new FenCrudFctGen();
                form.ShowDialog();
                break;

            case metier.IoPhysGen:
                form = new FenCrudIoPhysiqueGen();
                form.ShowDialog();
                break;

            case metier.CritGen:
                form = new FenCrudCritGen();
                form.ShowDialog();
                break;

            default:
                break;
            }
        }