Display Status of Classes
<p>I have a Windows Form that calls a number of methods in 2 separate classes in a single dll.</p>

<p>In the Form I want to display status updates i.e. display in label how the query is progressing.</p>

<p>How do I track the status of methods of 2 different classes in dll?</p>

<p>Thanks!</p>

<p>Below is sample dll code...</p>

<pre><code>public class ClassA
{

    private string ProgressStatus
    private void SetStatusText(string currentStatus)
    {
        progressStatus = currentStatus;
    }

    public void ReportRequest()
    {   
        SetStatusText("Begin Process..."); // update status

  SetStatusText("Getting Dates..."); // update status

        // get dates
  DatesClass myDates = new DatesClass()
        datesOK = myDates.GetDates();

        if (datesOK)
        {
    SetStatusText("Running Request...");
    RunFinalRequest();
        }
    }
}


public internal class ClassB
{

    private string ProgressStatus
    private void SetStatusText(string currentStatus)
    {
        progressStatus = currentStatus;
    }


    public string GetDates()
    {   

    SetStatusText("Loading Dates..."); // update status

          LoadDates();

          return // return sql query value
    }

    private void LoadDates()
    {
    // sql query...
    SetStatusText("Run Query...");
    }
}
</code></pre>
