static void OpenEditorSuccess(ref OpenEditorMsg msg, MyNetworkClient sender)
        {
            MyEntity entity = null;

            MyEntities.TryGetEntityById(msg.EntityId, out entity);
            MyProgrammableBlock block = entity as MyProgrammableBlock;

            if (block != null && block.ConsoleOpenRequest)
            {
                block.ConsoleOpenRequest = false;
                block.OpenEditor();
            }
        }
 public virtual void SendOpenEditorRequest(ulong user)
 {
     if (Sync.IsServer)
     {
         if (m_programmableBlock.ConsoleOpen == false)
         {
             m_programmableBlock.ConsoleOpen = true;
             m_programmableBlock.OpenEditor();
         }
         else
         {
             m_programmableBlock.ShowEditorAllReadyOpen();
         }
     }
     else
     {
         var msg = new OpenEditorMsg();
         msg.User = user;
         m_programmableBlock.ConsoleOpenRequest = true;
         msg.EntityId = m_programmableBlock.EntityId;
         Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
     }
 }