예제 #1
0
        protected override void ChangeElementDataInGrid(int elementID, int row)
        {
            var element = Ares.Data.DataModule.ElementRepository.GetElement(elementID);

            elementsGrid.Rows[row].Cells[0].Value = element.Title;
            if (mHasMusicColumns)
            {
                var musicFileInfo = element.GetMusicFileInfo();
                elementsGrid.Rows[row].Cells[1].Value = musicFileInfo != null ? (musicFileInfo.Artist != null ? musicFileInfo.Artist : string.Empty) : string.Empty;
                elementsGrid.Rows[row].Cells[2].Value = musicFileInfo != null ? (musicFileInfo.Album != null ? musicFileInfo.Album : string.Empty) : string.Empty;
            }
            elementsGrid.Rows[row].Cells[3].Value =
                (m_Container.GetElement(elementID)).RandomChance;
        }