public void login() { int[] scriptableIDs = null; ClientServerUtil csu = ClientServerUtil.getInstance(); bool login = csu.Login(username, password); if (login) { success = true; csu.RegisterInvitationMqListener(obs); scriptableIDs = csu.GetScriptableMachines(); } LoginEvent(this, new LoginEventArgs(success, username, password, scriptableIDs)); }