private int RoboStart() { var status = "OK"; var ireply = _omsclient == null ? 0 : _omsclient.Start("CMA_TESTE", "CMA_USER", "123456", out status); if (ireply != 0) { _omsclient.GetEnabledMarkets(out status); } status = string.IsNullOrEmpty(status) ? "OFF CMA não está loggado" : ireply == 0 ? "OFF CMA indisponível" : "OK"; NotifyOMS(status); return(ireply); }