private void btnStart_Click(object sender, EventArgs e)
{
try
{
if (rootHub.Open() && rootHub.Start())
{
btnStart.Enabled = false;
btnStop.Enabled = true;
}
}
catch (RootHubAlreadyStartedException rhex)
{
Log.Fatal(rhex.Message);
MessageBox.Show(rhex.Message, "Error starting server", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}