Beispiel #1
0
        private static void websocketMessage(object sender, MessageEventArgs e)
        {
            try
            {
                HealObject data = HealObject.ToObject(e.Data);
                Logger.Log("Message from Server - " + data.action);
                switch (data.action)
                {
                case "find":
                    checkForObjectInContext(data);
                    break;

                case "serverStop":
                    stopAll();
                    break;

                case "startSpy":
                    //Spy.startSpy();
                    break;

                case "startHeal":
                    //cognizantitsToolbar.startHeal();
                    break;

                case "startRecord":
                    //cognizantitsToolbar.startRecord();
                    break;
                }
            }
            catch (Exception ex)
            {
                Logger.Log(ex.ToString());
            }
        }
Beispiel #2
0
 private static void checkForObjectInContext(HealObject data)
 {
     //if (Heal.permissionGranted)
     Heal.Search(data);
 }
Beispiel #3
0
 private static void findAndHighlightElement(HealObject message)
 {
     dehighlightOldElements();
     searchElements(message.objects);
 }
Beispiel #4
0
 internal static void Search(HealObject message)
 {
     findAndHighlightElement(message);
 }