示例#1
0
        private void buttonSupprimerRAcc_Click(object sender, EventArgs e)
        {
            DlgRapportAccident d = new DlgRapportAccident(m_dossier.Vehicules, TypeDeSaisie.Suppression, m_dossier.RapportAccident);

            if (d.ShowDialog() == DialogResult.OK)
            {
                m_dossier.SetRapportAccident(null);
                MAJRapportAccident();
            }
        }
示例#2
0
        private void buttonModifierRAcc_Click(object sender, EventArgs e)
        {
            DlgRapportAccident d = new DlgRapportAccident(m_dossier.Vehicules, TypeDeSaisie.Modification, m_dossier.RapportAccident);

            if (d.ShowDialog() == DialogResult.OK)
            {
                m_dossier.SetRapportAccident(d.Extraire());
                MAJRapportAccident();
            }
        }
示例#3
0
        private void buttonAjouterRAcc_Click(object sender, EventArgs e)
        {
            DlgRapportAccident d = new DlgRapportAccident(m_dossier.Vehicules);

            if (d.ShowDialog() == DialogResult.OK)
            {
                m_dossier.SetRapportAccident(d.Extraire());
                MAJRapportAccident();
            }
        }