Beispiel #1
0
        private void PesquisaQuartoItem_Click(object sender, EventArgs e)
        {
            FormPesquisaQuarto frm = new FormPesquisaQuarto();

            this.Hide();
            frm.ShowDialog();
            this.Show();
        }
        private void btnPesquisarQuarto_Click(object sender, EventArgs e)
        {
            FormPesquisaQuarto frm = new FormPesquisaQuarto();

            frm.ShowDialog();
            if (frm.QuartoSelecionado != null)
            {
                this.txtIDQuarto.Text = frm.QuartoSelecionado.ID.ToString();
            }
        }