コード例 #1
0
 /// <summary>
 /// Constructor: Instantiates and Starts the thread 
 /// </summary>
 /// <param name="BasicProgramData"></param>
 private DataComms(Grucox.DataManager.UserSessionData BasicProgramData)
 {
     basicProgramData = BasicProgramData;
     ThreadStart ThreadStartPoint = new ThreadStart(TryPerformDataUpload);
     thread1 = new Thread(ThreadStartPoint);
     Start();
 }
コード例 #2
0
 /// <summary>
 /// Static Function: Called from the main program to pass the required parameters
 /// and create an instance of the tread object
 /// </summary>
 /// <param name="BasicProgramData"></param>
 public static void CreateThreadInstance(Grucox.DataManager.UserSessionData BasicProgramData)
 {
     DataComms dataComms = new DataComms(BasicProgramData);
 }