|
///////////////////////////////////////////////////////////////////////
//
// Audio Manager for the PRISMIQ Media Player
// Written by Bruce Waeyen
// Copyright (c) 2004. All Rights Reserved.
//
// This code may be used in compiled form in any way you desire. This
// file may be redistributed unmodified by any means PROVIDING it is
// not sold for profit without the authors written consent, and
// providing that this notice and the authors name and all copyright
// notices remains intact.
//
//
// This file is provided "as is" with no expressed or implied warranty.
// The author accepts no liability for any damage/loss of business that
// this product may cause.
//
//
//////////////////////////////////////////////////////////////////////
using System;
using System.Windows.Forms;
using CRC;
namespace PocketMedia
{
/// <summary>
///
/// </summary>
public class QueListView : ListView
{
public QueListView()
{
//
// TODO: Add constructor logic here
//
}
public uint CalculateCRC()
{
uint[] b = new uint[Items.Count];
int n = 0;
foreach (SongListViewItem item in Items)
{
b[n++] = item.Id;
}
CRC32 Crc = new CRC32();
return (uint)Crc.CalculateCRC(b);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.