Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            int     id      = this.listBox1.SelectedIndex;
            Persona per     = lista[id];
            bool    estado  = true;
            Agregar agregar = new Agregar(per, estado);

            agregar.ShowDialog();
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Agregar agregar = new Agregar();

            agregar.ShowDialog();
            if (agregar.DialogResult == DialogResult.OK)
            {
                this.Refrescar();
            }
        }