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(); }
/// <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(); }; }