Inheritance: Entity
 public static bool Delete(Sign sign)
 {
     if (!Program.currentMap.Signs.Remove(sign))
         return false;
     Program.isEdited = true;
     return true;
 }
 private void WriteSignData(Sign sign)
 {
     PGMEBackend.Program.isEdited = true;
     sign.WriteDataToRaw();
     hexViewerRawSign.ByteProvider = new DynamicByteProvider(sign.rawData, true, false, false);
 }
 public Entity CreateNewEntity(Entity.EntityType entityType, int xPos = 0, int yPos = 0)
 {
     Entity entity;
     switch (entityType)
     {
         default:
             entity = new NPC((short)xPos, (short)yPos);
             break;
         case Entity.EntityType.Warp:
             entity = new Warp((short)xPos, (short)yPos);
             break;
         case Entity.EntityType.Trigger:
             entity = new Trigger((short)xPos, (short)yPos);
             break;
         case Entity.EntityType.Sign:
             entity = new Sign((short)xPos, (short)yPos);
             break;
     }
     CreateNewEntity(entity);
     return entity;
 }
 public void LoadSignView(Sign sign)
 {
     loadingEntityView = true;
     panelSignEvent.Visible = true;
     nudEntityNum.Enabled = true;
     hexNumberBoxSignXPos.Text = sign.xPos.ToString("X4");
     hexNumberBoxSignYPos.Text = sign.yPos.ToString("X4");
     hexNumberBoxSignHeight.Text = sign.height.ToString("X2");
     cbSignHeight.SelectedIndex = sign.height;
     hexNumberBoxSignType.Text = sign.type.ToString("X2");
     cbSignType.SelectedIndex = sign.type;
     hexNumberBoxSignFiller1.Text = sign.filler1.ToString("X2");
     hexNumberBoxSignFiller2.Text = sign.filler2.ToString("X2");
     hexNumberBoxSignScriptOffset.Text = (sign.scriptOffset + 0x8000000).ToString("X8");
     labelSignOffset.Text = settings.HexPrefix + (sign.offset + 0x8000000).ToString("X8");
     hexViewerRawSign.ByteProvider = new DynamicByteProvider(sign.rawData, true, false, false);
     PGMEBackend.Program.glEntityEditor.currentEntities = new List<Entity> { sign };
     loadingEntityView = false;
     RefreshEntityEditorControl();
 }