예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            FrmAddEmpleado frm = new FrmAddEmpleado();

            this.Hide();
            frm.ShowDialog();
        }
예제 #2
0
        private void btnEdit_Click(object sender, EventArgs e)
        {
            int            rowindex    = dataGridEmpleados.CurrentCell.RowIndex;
            int            columnindex = dataGridEmpleados.CurrentCell.ColumnIndex;
            FrmAddEmpleado fed         = new FrmAddEmpleado();

            this.Hide();
            fed.values = Int32.Parse(dataGridEmpleados.Rows[rowindex].Cells[columnindex].Value.ToString());
            fed.ShowDialog();
        }