Esempio n. 1
0
        private void FrmGestionSoins_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.TypeSoin' table. You can move, or remove it, as needed.
            this.typeSoinTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.TypeSoin);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.Soin' table. You can move, or remove it, as needed.
            this.soinTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.Soin);

            soinBindingSource.CurrentChanged += VerifierSiSupprimable;

            soinTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("NoSoin", "le soin");
        }
        private void FrmReservationChambres_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.ReservationChambre' table. You can move, or remove it, as needed.
            this.reservationChambreTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.ReservationChambre);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.ChambreEtPrix' table. You can move, or remove it, as needed.
            this.chambreEtPrixTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.ChambreEtPrix);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomClients' table. You can move, or remove it, as needed.
            this.noEtNomClientsTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomClients);

            reservationChambreTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("No Reservation", "la reservation du client");
        }
        private void GestionChambresEtTypes_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.Chambre' table. You can move, or remove it, as needed.
            this.chambreTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.Chambre);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.TypeChambre' table. You can move, or remove it, as needed.
            this.typeChambreTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.TypeChambre);

            chambreBindingSource.CurrentChanged     += VerifierSiChambreEstReservee;
            typeChambreBindingSource.CurrentChanged += VerifierSiTypeADesChambres;

            chambreTableAdapter.Adapter.RowUpdated     += GestionConflits.GenererGestionConflit("NoChambre", "chambre");
            typeChambreTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("NoTypeChambre", "type chambre");
        }
Esempio n. 4
0
        private void FrmPlanificationSoins_Load(object sender, EventArgs e)
        {
            colDateHeure = new CalendarColumn();

            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsAssistants' table. You can move, or remove it, as needed.
            this.noEtNomsAssistantsTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsAssistants);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsAssistants' table. You can move, or remove it, as needed.
            this.noEtNomsAssistantsTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsAssistants);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsClientsInvites' table. You can move, or remove it, as needed.
            this.noEtNomsClientsInvitesTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsClientsInvites);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtDescriptionSoin' table. You can move, or remove it, as needed.
            this.noEtDescriptionSoinTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtDescriptionSoin);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.PlanifSoin' table. You can move, or remove it, as needed.
            this.planifSoinTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.PlanifSoin);

            planifSoinTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("DateHeure", "le rendezvous cédulé le");
        }
        private void FormClientsInvites_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.Invite' table. You can move, or remove it, as needed.
            this.inviteTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.Invite);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.Client' table. You can move, or remove it, as needed.
            this.clientTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.Client);

            btnSupprimerCli.Enabled = clientBindingSource.Current != null && ClientEstSupprimable((DataRowView)clientBindingSource.Current);

            btnSupprimerInvite.Enabled = inviteBindingSource.Current != null && InviteEstSupprimable((DataRowView)inviteBindingSource.Current);

            clientBindingSource.CurrentChanged += OnChangeCurrentClient;
            inviteBindingSource.CurrentChanged += OnChangeCurrentInvite;

            clientTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("NoClient", "le client");
            inviteTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("NoInvite", "l'invité.e");
        }
        private void FrmGestionUtilisateurs_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.TypeUtilisateur' table. You can move, or remove it, as needed.
            this.typeUtilisateurTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.TypeUtilisateur);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.Utilisateur' table. You can move, or remove it, as needed.
            this.utilisateurTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.Utilisateur);

            foreach (DataGridViewRow row in utilisateurDataGridView.Rows)
            {
                if (Convert.ToInt32(row.Cells[0].Value).Equals(GestionForms.utilisateurConnecte.NoUtilisateur))
                {
                    row.ReadOnly = true;
                    row.DefaultCellStyle.BackColor = Color.LightGray;
                }
            }

            utilisateurTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("NoUtilisateur", "l'utilisateur");
        }
Esempio n. 7
0
        private void FrmGestionAssistant_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsAssistants' table. You can move, or remove it, as needed.
            this.noEtNomsAssistantsTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtNomsAssistants);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtDescriptionSoin' table. You can move, or remove it, as needed.
            this.noEtDescriptionSoinTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.NoEtDescriptionSoin);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.AssistantSoinDescription' table. You can move, or remove it, as needed.
            this.assistantSoinDescriptionTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.AssistantSoinDescription);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.AssistantSoin' table. You can move, or remove it, as needed.
            this.assistantSoinTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.AssistantSoin);
            // TODO: This line of code loads data into the 'bD5B6TP1_ConstantinBrassardLaheyDataSet.Assistant' table. You can move, or remove it, as needed.
            this.assistantTableAdapter.Fill(this.bD5B6TP1_ConstantinBrassardLaheyDataSet.Assistant);

            assistantSoinDataGridView.RowHeadersVisible = false;
            btnSupprimerSoin.Enabled = true;

            assistantSoinTableAdapter.Adapter.RowUpdated += GestionConflits.GenererGestionConflit("NoAssistant", "l'assitant-soin");
            assistantTableAdapter.Adapter.RowUpdated     += GestionConflits.GenererGestionConflit("NoAssistant", "l'assistant.e");
        }