title: Is correct to call a function from a BackGroundWorker?
body: <p>I have an application that gets data from a database, processes it, and then sends it to a defined IP.  I want to make it use a <code>BackgroundWorker</code> to avoid halting the GUI.</p>
  
  <p>The code in the <code>BackgroundWorker</code> event handler is too long and complex, so I'm thinking of splitting that code into many functions to better organize the code.</p>
  
  <p>Is this OK? Can I write those functions in the same <code>Form1</code> class and call them from a <code>BackgroundWorker</code>?  Do I need to create a new class?</p>