Exemple #1
0
        private void extintorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ExtDLG dlg = new ExtDLG(cdb, edb);

            dlg.isModify = false;
            dlg.ShowDialog();
            updateExt(edb.read());
        }
Exemple #2
0
        private void extintorToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Helper help = new Helper(false);

            help.ShowDialog();
            int          id = help.input();
            Extinguisher xd = edb.QueryByID(id);

            if (xd == null)
            {
                MessageBox.Show("No se encontro ese extintor", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            ExtDLG dlg = new ExtDLG(cdb, edb);

            dlg.isModify = true;
            dlg.ext      = xd;
            dlg.ShowDialog();
        }