//Assinatura
private void btnAssinar_Click()
{
if (cklbFuncao.GetItemChecked(0))
{
txtLog.Text += "Método: cte.AssinarArquivoXML\r\n";
str = "#RETORNO: " +
cte.AssinarArquivoXML(path + "CTe" + chCTe + ".xml", "infCte");
txtLog.Text += str + "\r\n\r\n";
if (str.ToLower().IndexOf("sucesso") > 0)
go = true;
Application.DoEvents();
}
}