private void RefreshControls()
{
if (!netcom.IsLoggedIn)
{
cbxInput.Enabled = false;
btnSend.Enabled = false;
return;
}
cbxInput.Enabled = true;
if (cbxInput.Text.Length > 0)
{
btnSend.Enabled = true;
if (!typing)
{
netcom.SendIMStartTyping(target, session);
typing = true;
}
}
else
{
btnSend.Enabled = false;
netcom.SendIMStopTyping(target, session);
typing = false;
}
}