public MainForm()
        {
            InitializeComponent();
            TransfertsListForm frm = new TransfertsListForm();

            frm.MdiParent = this;
            frm.Show();

            transfertProvider.CountAll();
        }
        public TransfertEditForm(TransfertsListForm owner, bool update, int id = 0)
        {
            _owner = owner;
            _id    = id;
            transfertUpdateMode = update;
            FormClosed         += new FormClosedEventHandler(TransfertEditForm_FormClosed);
            InitializeComponent();

            /* Combobox Agence */
            var dataSource = new List <Agence>();

            foreach (Agence agence in utils.AllAgencies())
            {
                if (agence.Actif == true)
                {
                    dataSource.Add(agence);
                }
            }
            CbxAgence.DataSource    = dataSource;
            CbxAgence.DisplayMember = "FullName";
            CbxAgence.ValueMember   = "FullName";

            /* Combobox Vendeur */
            var dataSourceVendeur = new List <string>();

            dataSourceVendeur.Add("");
            foreach (string transfert in transfertProvider.GetVendeurs())
            {
                dataSourceVendeur.Add(transfert);
            }
            CbxVendeur.DataSource    = dataSourceVendeur;
            CbxVendeur.DisplayMember = "Vendeur";
            //CbxVendeur.ValueMember = "Vendeur";

            switch (transfertUpdateMode)
            {
            /* Mode création */
            case false:
                NewTransfert();
                break;

            /* Mode mise à jour */
            case true:
                LoadTransfert();
                break;
            }

            /* Titre du formulaire */
            this.Text = formTitle;
        }