static void CloseEditor(ref CloseEditorMsg msg, MyNetworkClient sender)
        {
            MyEntity entity = null;

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

            if (block != null)
            {
                block.ConsoleOpen = false;
            }
        }
 public virtual void SendCloseEditor()
 {
     if (Sync.IsServer)
     {
         m_programmableBlock.ConsoleOpen = false;
     }
     else
     {
         var msg = new CloseEditorMsg();
         msg.EntityId = m_programmableBlock.EntityId;
         Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
     }
 }
 static void CloseEditor(ref CloseEditorMsg msg, MyNetworkClient sender)
 {
     MyEntity entity = null;
     MyEntities.TryGetEntityById(msg.EntityId, out entity);
     MyProgrammableBlock block = entity as MyProgrammableBlock;
     if (block != null)
     {
         block.ConsoleOpen = false;
     }
 }
 public virtual void SendCloseEditor()
 {          
     if (Sync.IsServer)
     {
         m_programmableBlock.ConsoleOpen = false;          
     }
     else
     {
         var msg = new CloseEditorMsg();
         msg.EntityId = m_programmableBlock.EntityId;
         Sync.Layer.SendMessageToServer(ref msg, MyTransportMessageEnum.Request);
     }
 }