예제 #1
0
        private void btn_agregar_Click(object sender, EventArgs e)
        {
            AGREGAR_GASTO form = new AGREGAR_GASTO(bd, -1);

            form.Show();

            this.Close();
        }
예제 #2
0
        private void btn_modificar_Click(object sender, EventArgs e)
        {
            foreach (ListViewItem lista in listView_puestos.SelectedItems)
            {
                int id = Convert.ToInt32(lista.Text);

                this.Hide();
                AGREGAR_GASTO form = new AGREGAR_GASTO(bd, id);
                form.Show();

                this.Close();
            }
        }