private void vShowAgentesCarga(object sender, EventArgs e) { m_formFCadastros.Cursor = System.Windows.Forms.Cursors.WaitCursor; mdlAgentes.clsAgenteCarga cls_AgenteCarga = new mdlAgentes.clsAgenteCarga(ref m_cls_ter_tratadorErro, ref m_cls_dba_ConnectionDB, m_strEnderecoExecutavel, m_nIdExportador, m_strIdPe); cls_AgenteCarga.ShowDialog(); m_formFCadastros.Cursor = System.Windows.Forms.Cursors.Default; }
private void m_btAgentesCargaPE_Click(object sender, System.EventArgs e) { CreateDataBase(); mdlAgentes.clsAgenteCarga obj = new mdlAgentes.clsAgenteCarga(ref m_cls_tre_tratadorErro, ref m_cls_dba_ConnectionBD, this.m_txtPath.Text, Int32.Parse(this.m_txtIdExportador.Text), this.m_txtIdCodigo.Text); obj.ShowDialog(); if (obj.m_bModificado) { string strNome, strEndereco, strCEP, strBairro, strCidade, strEstado, strTelefone, strFax, strEmail, strSite, strContatoNome, strContatoTelefone, strContatoFax, strContatoEmail; obj.vRetornaValores(out strNome, out strEndereco, out strCEP, out strBairro, out strCidade, out strEstado, out strTelefone, out strFax, out strEmail, out strSite, out strContatoNome, out strContatoTelefone, out strContatoFax, out strContatoEmail); m_txtRetorno.Text = "Agente :" + strNome + " Contato:" + strContatoNome + strContatoTelefone; } }
private void m_btAgentesCarga_Click(object sender, System.EventArgs e) { CreateDataBase(); mdlAgentes.clsAgenteCarga obj = new mdlAgentes.clsAgenteCarga(ref m_cls_tre_tratadorErro, ref m_cls_dba_ConnectionBD, this.m_txtPath.Text, Int32.Parse(this.m_txtIdExportador.Text)); obj.ShowDialog(); }