Example #1
0
        public frmYellow(Offre offre)
        {
            InitializeComponent();

            _RegionManager  = new RegionManager();
            _PosteManager   = new PosteManager();
            _ContratManager = new ContratManager();

            _OldOffre = offre;
            _NewOffre = offre;

            this.DialogResult = DialogResult.Cancel;

            this.FillFormulaire(_OldOffre);

            this.FillingAllComboBox();

            buttonUpdate.Enabled = EnabledUpdate();

            regionNew  = _DefaultRegion;
            contratNew = _DefaultContrat;
            posteNew   = _DefaultPoste;

            labelTitre.Text    = $"Modification de l'offre N°{_OldOffre.Id}";
            labelResultat.Text = String.Empty;
        }
Example #2
0
        public frmGreen()
        {
            InitializeComponent();
            _RegionNew  = _DefaultRegion;
            _ContratNew = _DefaultContrat;
            _PosteNew   = _DefaultPoste;
            _SocieteNew = _DefaultSociete;

            _SocieteManager = new SocieteManager();
            _RegionManager  = new RegionManager();
            _PosteManager   = new PosteManager();
            _ContratManager = new ContratManager();

            this.DialogResult = DialogResult.Cancel;
            _NewOffre         = new Offre();

            this.FillingAllComboBox();

            this.FillFormulaire();

            buttonInsert.Visible = this.EnabledInsertion();

            labelTitre.Text       = "Création d'une nouvelle Offre";
            labelInsert.Text      = "Veuillez remplir les champs obligatoires";
            labelInsert.ForeColor = Color.DarkRed;
        }
Example #3
0
        private void FillingAllComboBox()
        {
            SocieteManager societeManager = new SocieteManager();
            RegionManager  regionManager  = new RegionManager();
            ContratManager contratManager = new ContratManager();
            PosteManager   posteManager   = new PosteManager();
            JourManager    jourManager    = new JourManager("derniers jours");

            societeManager.FillingComboBox(_DefaultSociete, bindingSourceSociete, comboBoxSociete);
            regionManager.FillingComboBox(_DefaultRegion, bindingSourceRegion, comboBoxRegion);
            contratManager.FillingComboBox(_DefaultContrat, bindingSourceContrat, comboBoxContrat);
            posteManager.FillingComboBox(_DefaultPoste, bindingSourcePoste, comboBoxPoste);
            jourManager.FillingComboBox(_DefaultJour, bindingSourceJour, comboBoxJour);
        }