Пример #1
0
        private void btnAgregar_Click(object sender, EventArgs e)
        {
            Plan        aux = (Plan)this.lstPlanes.SelectedItem;
            frmAltaPlan AP  = new frmAltaPlan(this, true);

            AP.ShowDialog();
        }
Пример #2
0
        private void btnModificar_Click(object sender, EventArgs e)
        {
            Plan        aux = (Plan)this.lstPlanes.SelectedItem;
            frmAltaPlan AP  = new frmAltaPlan(this, false, plan.nombre, plan.estado);

            this.Enabled = false;
            AP.Show();
        }