//*********************************************************************
// //
// SQL Power Injector 1.2 Copyright (c) 2006-2007 Francois Larouche //
// //
// Author : francois.larouche@sqlpowerinjector.com //
// Web Site: www.sqlpowerinjector.com //
// //
//*******************************************************************//
using System;
namespace SQLPowerInjector{
/// <summary>
/// Summary description for WordThread.
/// </summary>
public class WordThread
{
private int _currentThreadNumber = 1;
private bool _isSilentMode = false;
private string _currentValueFromVariableRange = "";
private IWordThreadCaller _caller = null;
#region Constructor
public WordThread(int currentThreadNumber, bool isSilentMode, string currentValueFromVariableRange, IWordThreadCaller currentCaller)
{
if(currentThreadNumber < 1)
_currentThreadNumber = 1;
else
_currentThreadNumber = currentThreadNumber;
_isSilentMode = isSilentMode;
_caller = currentCaller;
_currentValueFromVariableRange = currentValueFromVariableRange;
}
#endregion
public void StartWordThread()
{
_caller.GetWordWithThread(_currentThreadNumber, _isSilentMode, _currentValueFromVariableRange);
}
}
}
|