Exemplo n.º 1
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {
            var  index    = dataGridView.CurrentRow.Index;
            Form toUpdate = new HotelModifier(new HotelHandler((dataGridView.Rows[index].DataBoundItem as DataRowView).Row));

            toUpdate.MdiParent = this.MdiParent;
            toUpdate.Show();
        }
Exemplo n.º 2
0
        private void buttonUpdate_Click(object sender, EventArgs e)
        {

            var index = dataGridView.CurrentRow.Index;
            Form toUpdate = new HotelModifier(new HotelHandler( (dataGridView.Rows[index].DataBoundItem as DataRowView).Row) ) ;
            toUpdate.MdiParent = this.MdiParent;
            toUpdate.Show();
        }