Beispiel #1
0
        private void clientecreate_Click(object sender, EventArgs e)
        {
            ClienteDLG dlg = new ClienteDLG(cdb);

            dlg.isModify = false;
            dlg.ShowDialog();
            updateClients(cdb.read());
        }
Beispiel #2
0
        private void clienteupdate_Click(object sender, EventArgs e)
        {
            Helper help = new Helper(true);

            help.ShowDialog();
            int        id  = help.input();
            Client     cl  = cdb.QueryByID(id);
            ClienteDLG dlg = new ClienteDLG(cdb);

            dlg.isModify = false;
            dlg.cl       = cl;
            dlg.ShowDialog();
            updateClients(cdb.read());
        }