public void CreateSoundRow(string soundFile, Item item, bool save = true)
        {
            var entity = new SoundFunEntity {
                SoundFile = soundFile,
                Item      = item
            };

            var row = new SoundRow(soundFile, item, this);

            mainPanel.Children.Add(row);

            SoundFunPlayer.Entities.Add(entity.Item.Id, entity);

            if (save)
            {
                SoundFunSerializer.Save();
            }
        }
 public void RemoveRow(SoundRow row, int itemId)
 {
     mainPanel.Children.Remove(row);
     SoundFunPlayer.Entities.Remove(itemId);
     SoundFunSerializer.Save();
 }