Exemplo n.º 1
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            ABM_de_Habitacion.UpdateRoom frm = new UpdateRoom();

            frm.textBoxNumber.Text = this.dataGridViewResults.CurrentRow.Cells[1].Value.ToString();
            frm.textBoxFloor.Text  = this.dataGridViewResults.CurrentRow.Cells[2].Value.ToString();

            frm.comboBoxType.Text = this.dataGridViewResults.CurrentRow.Cells[3].Value.ToString();
            frm.comboBoxLoc.Text  = this.dataGridViewResults.CurrentRow.Cells[4].Value.ToString();
            frm.textBoxDescr.Text = this.dataGridViewResults.CurrentRow.Cells[5].Value.ToString();
            frm.textBoxState.Text = this.dataGridViewResults.CurrentRow.Cells[6].Value.ToString();

            frm.ShowDialog();
            this.Hide();
        }
Exemplo n.º 2
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            ABM_de_Habitacion.UpdateRoom frm = new UpdateRoom();
            
            frm.textBoxNumber.Text = this.dataGridViewResults.CurrentRow.Cells[1].Value.ToString();
            frm.textBoxFloor.Text = this.dataGridViewResults.CurrentRow.Cells[2].Value.ToString();

            frm.comboBoxType.Text = this.dataGridViewResults.CurrentRow.Cells[3].Value.ToString();
            frm.comboBoxLoc.Text = this.dataGridViewResults.CurrentRow.Cells[4].Value.ToString();
            frm.textBoxDescr.Text = this.dataGridViewResults.CurrentRow.Cells[5].Value.ToString();
            frm.textBoxState.Text = this.dataGridViewResults.CurrentRow.Cells[6].Value.ToString();
     
            frm.ShowDialog();
            this.Hide();


        }