title: Hosting / embed a Windows service to a WPF C#
body: <p>I am new to C#. I have done Android programming before.</p>
  
  <p>I need to write a program with one control panel only and in the background the program writes to a database per 30s. The UI is updated by reading from the database per second.</p>
  
  <p>I am planning to use a windows service for the background update of the database, along with multiple asynchronous threads.</p>
  
  <p>Question:
  1) As asynchronous threads runs in the background only, is it necessary to use a service on it also? Is it better to avoid kicking off these asynchronous threads at UI thread?</p>
  
  <p>2) In Android programming, I could simply create a new service/ asynchronous threads class inside the project and start the service/ thread programming from there. In C# (I'm on visual studio 2010, using WPF as the control panel), it seems I need to start a new window service project, code from there, and them import it into the WPF project? Is that true?</p>
  
  <p>3) And is the MainWindow.xaml.cs the main/ UI thread?</p>
  
  <p>Thanks!!</p>