void CheckState()
{
if (log == null)
{
this.buttonStop.Enabled = false;
this.buttonBrowse.Enabled = false;
}
else
{
if (enabled)
{
this.buttonStop.Enabled = true;
this.buttonBrowse.Enabled = false;
}
else
{
this.buttonStop.Enabled = false;
this.buttonBrowse.Enabled = true;
}
}
}