Your client will be dispatched in different threads, so they will not intersect.
You just need to add something like “DispatchMethod” where your messages will be processed.
using System.Text.RegularExpressions;
...
if (Regex.IsMatch(bufferincmessage, Properties.Settings.Default.REQLogin, RegexOptions.IgnoreCase))
{
...
}
else if (Regex.IsMatch(bufferincmessage, /*some of your command1*/, RegexOptions.IgnoreCase))
{
...
}
else if (Regex.IsMatch(bufferincmessage, /*some of your command1*/, RegexOptions.IgnoreCase))
{
...
}