public void LoginUser(string userName) { try { if (IsConnectionOk()) { ClientInstance.LoginUser(userName); } } catch (Exception ex) { HandleException(); } }