/// <summary>
 /// Resets all controls to initial state and disables them
 /// </summary>
 public void Clear()
 {
     _maxTasksHdlr              = null;
     _traceLevelHdlr            = null;
     tbConnKey.Text             = null;
     tbLoggingKey.Text          = null;
     tbConfigId.Text            = null;
     tbEngineId.Text            = null;
     tbTaskAssemblyPath.Text    = null;
     tbHostEndpointAddress.Text = null;
     _maxTasks                   = 1;
     npmMaxTasks.Max             = 1;
     npmMaxTasks.Min             = 1;
     npmMaxTasks.Value           = npmMaxTasks.Min;
     cmbTraceLevel.SelectedIndex = 0;
     SetDisplayObjects(false);
 }
 /// <summary>
 /// Sets the text of the controls to the values given
 /// </summary>
 /// <param name="traceLevelHdlr">Delegate handler for the change tracel level event</param>
 /// <param name="maxTasksHdlr">Delegate handler for the change max tasks event</param>
 /// <param name="connectionKey">Connection key string</param>
 /// <param name="loggingKey">Logging key string</param>
 /// <param name="configId">Configuration Identifier</param>
 /// <param name="engineId">Engine Identifier </param>
 /// <param name="taskAssemblyPath">Path to where task implementation assemblies can be found</param>
 /// <param name="hostEndpointAddress">URL where WCF host TPE can be found</param>
 /// <param name="maxTasks">Maximum number of tasks that can be run in parallel</param>
 /// <param name="traceLevel">Trace level setting to allow messages to be viewed</param>
 public void Display(TraceLevelChangeHandler traceLevelHdlr
                     , MaxTasksChangeHandler maxTasksHdlr
                     , string connectionKey
                     , string loggingKey
                     , string configId
                     , string engineId
                     , string taskAssemblyPath
                     , string hostEndpointAddress
                     , int maxTasks
                     , ILoggingManagement.enumTraceLevel traceLevel)
 {
     _maxTasksHdlr              = maxTasksHdlr;
     _traceLevelHdlr            = traceLevelHdlr;
     tbConnKey.Text             = connectionKey;
     tbLoggingKey.Text          = loggingKey;
     tbConfigId.Text            = configId;
     tbEngineId.Text            = engineId;
     tbTaskAssemblyPath.Text    = taskAssemblyPath;
     tbHostEndpointAddress.Text = hostEndpointAddress;
     _maxTasks = maxTasks;
     npmMaxTasks.Initialize("Max Tasks In Parallel", _parentContext, _maxTasksClickHdlr, 1, _maxTasks, 1, 1, 1);
     cmbTraceLevel.SelectedItem = traceLevel;
     SetDisplayObjects(true);
 }