public static void updateWindowCap(int hWnd, Bitmap cap)
 {
     try
     {
         _processDict[hWnd].WindowCap = cap;
         CompRequest updateCapRequest = WireProtocol.createProgramMessage(Guid.NewGuid().ToString(), hWnd, (byte[])converter.ConvertTo(cap, typeof(byte[])));
         //cListener.phoneCommChannel.sendMessage(WireProtocol.serializeMessage(updateCapRequest));
     }
     catch (KeyNotFoundException e)
     {
         Console.WriteLine(e.ToString());
     }
 }
 public static void addProgram(int key, ProgramBase pInt)
 {
     _processDict.Add(key, pInt);
     currentProcess = pInt;
     try
     {
         CompRequest message = WireProtocol.createProgramMessage(Guid.NewGuid().ToString(), key, pInt.WindowTitle, (byte[])converter.ConvertTo(pInt.WindowCap, typeof(byte[])), pInt.ProgramType);
         //cListener.phoneCommChannel.startThread(WireProtocol.serializeMessage(message));
     }
     catch (NullReferenceException e) {
         Console.WriteLine(e.ToString());
     }
     //send phone update on process
 }