Exemple #1
0
        private void MovieView_QueryItemText(object sender, RetrieveVirtualItemEventArgs e)
        {
            var entry = _movieList[e.ItemIndex];

            e.Item = new ListViewItem(entry.Filename);
            e.Item.SubItems.Add(entry.SystemID);
            e.Item.SubItems.Add(entry.GameName);
            e.Item.SubItems.Add(_platformFrameRates.MovieTime(entry).ToString(@"hh\:mm\:ss\.fff"));
        }
Exemple #2
0
        private void MovieView_QueryItemText(int index, int column, out string text)
        {
            text = "";
            if (column == 0)             // File
            {
                text = Path.GetFileName(_movieList[index].Filename);
            }

            if (column == 1)             // System
            {
                text = _movieList[index].SystemID;
            }

            if (column == 2)             // Game
            {
                text = _movieList[index].GameName;
            }

            if (column == 3)             // Time
            {
                text = PlatformFrameRates.MovieTime(_movieList[index]).ToString(@"hh\:mm\:ss\.fff");
            }
        }