예제 #1
0
        public RendezVousForm()
        {
            InitializeComponent();
            CommonBehaviourView.createColumnDataGridView(this.dgvAgenda);
            _initHeure();
            cmbClient.DisplayMember         = "NomClient";
            cmbClient.DataSource            = ClientController.Instance.Clients;
            cmbClient.SelectedIndexChanged += (object sender, EventArgs e) =>
            {
                _changeClient();
            };

            cmbVeto.DisplayMember         = "NomVeto";
            cmbVeto.DataSource            = VeterinaireController.Instance.Veterinaires;
            cmbVeto.SelectedIndexChanged += (object sender, EventArgs e) =>
            {
                _refreshAgenda();
            };
            dtpRendezVous.ValueChanged += (object sender, EventArgs e) =>
            {
                _refreshAgenda();
            };
            btnSupprimer.Click += (object sender, EventArgs e) =>
            {
                _supprimerRendezVous();
            };
            btnValider.Click += (object sender, EventArgs e) =>
            {
                _valider();
            };
            _refreshAgenda();
        }
예제 #2
0
 /// <summary>
 /// Contruit un formulaire agenda
 /// </summary>
 public AgendaForm()
 {
     InitializeComponent();
     CommonBehaviourView.createColumnDataGridView(this.dgvAgenda);
     cmbVeto.DisplayMember         = "NomVeto";
     cmbVeto.DataSource            = VeterinaireController.Instance.Veterinaires;
     cmbVeto.SelectedIndexChanged += (object sender, EventArgs e) =>
     {
         _refreshAgenda();
     };
     dtpRendezVous.ValueChanged += (object sender, EventArgs e) =>
     {
         _refreshAgenda();
     };
     btnDossierMedical.Click += (object sender, EventArgs e) =>
     {
         _showDossier();
     };
 }