Esempio 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();
        }
Esempio 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();
        }