Пример #1
0
        private void btn_BuscarServico_Click(object sender, EventArgs e)
        {
            FrmPesquisarServico servico = new FrmPesquisarServico();

            servico.ShowDialog();
            if (servico.Codigo != null)
            {
                txt_Servico.Text = servico.Descricao;
            }
        }
Пример #2
0
        private void btn_Pesquisar_Click(object sender, EventArgs e)
        {
            FrmPesquisarServico pesquisarServico = new FrmPesquisarServico();

            pesquisarServico.ShowDialog();
            if (pesquisarServico.Codigo != null)
            {
                idServico = int.Parse(pesquisarServico.Codigo);
                txt_CodigoServico.Text    = pesquisarServico.Codigo;
                txt_DescricaoServico.Text = pesquisarServico.Descricao;
                txt_PrecoServico.Text     = pesquisarServico.PrecoServico;
            }
        }
        private void listagemDeServiçosCadastradosToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmPesquisarServico pesquisarServico = new FrmPesquisarServico();

            pesquisarServico.ShowDialog();
        }