/// <summary> /// Constructor of the class. /// </summary> public IMDbManager() { // Set the properties of this class errorCaller += new errorCall(errorHandler); progressCaller += new progressCall(progressHandler); error = false; }
/// <summary> /// Constructor of the form. /// </summary> public Form1() { formErrorCaller += new errorCall(errorHandler); formProgressCaller += new progressCall(progressUpdater); formDataCaller += new dataCall(dataReceiver); InitializeComponent(); comboBox1.Text = comboBox1.Items[0].ToString(); }
/// <summary> /// Constructor /// </summary> public TestForm() { InitializeComponent(); //Adds the events formFunctionCaller += new functionCall(processResult); formErrorCaller += new errorCall(errorHandler); formProgressCaller += new progressCall(progressUpdater); }
/// <summary> /// Constructor. /// </summary> /// <param name="id">The ID of the worker.</param> public MTWorker(int id) { workerID = id; progressCaller += new progressCall(progressHandler); errorCaller += new errorCall(errorHandler); }