コード例 #1
0
        private void toolStripMenuItemNuevo_Click(object sender, EventArgs e)
        {
            FormHotel frm = new FormHotel();

            frm.Text = "Alta hotel";
            frm.ShowDialog();
            // bindingSourceCiudades.DataSource = DBData.CiudadORM.SelectAllCiudades();
            bindingSourceHoteles.DataSource = GetBySelectedCity();
        }
コード例 #2
0
        private void dataGridViewHoteles_DoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            hoteles   hotel = (hoteles)dataGridViewHoteles.CurrentRow.DataBoundItem;
            FormHotel frm   = new FormHotel(hotel);

            frm.Text = "Modificación hotel";
            frm.ShowDialog();
            // bindingSourceCiudades.DataSource = DBData.CiudadORM.SelectAllCiudades();
            bindingSourceHoteles.DataSource = GetBySelectedCity();
        }