title: Using one variable from a console in a windows form
body: <p>I have this project: </p>
  
  <p><a href="https://i.stack.imgur.com/r6E0r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/r6E0r.png" alt="enter image description here"></a></p>
  
  <p>And I need to use a variable that is in the "TransactionHandler.cs" in the "Enviar Faturas.cs" the TransactioHandler is a class library and the Enviar Faturas is a Windows Form.<br>
  Is it possible to do what I want? If so how should I do it?</p>
  
  <p>UPDATE:</p>
  
  <p>I have this variable declares in TransactionHandler.cs</p>
  
  <p><code>var numfatura = _transaction.TransDocument + _transaction.TransSerial + _transaction.TransDocNumber;</code> </p>
  
  <p>And I need to use it on the Windows Form "Enviar Faturas".</p>
  
  <p>UPDATE 2:</p>
  
  <p>I have this code to select from a datagridview and write a textfile:</p>
  
  <p><code>FileInfo arquivo = new FileInfo(@"C:\Users\HP8200\Desktop\faturas\" + r.Index + ".txt");</code><br>
  And I want to change the "r.index" for the variable I showed on the first update</p>