Click here to Skip to main content
11,583,859 members (62,395 online)
Click here to Skip to main content
Add your own
alternative version

BSEtunes

, 24 Apr 2010 CPOL 35.6K 3.3K 56
BSEtunes is a MySQL based, full manageable, networkable single or multiuser jukebox application
BSE.Platten.zip
BSE.Platten
BSE.Platten.vssscc
mssccprj.scc
vssver2.scc
BSE.CoverFlow.WPFLib
BSE.CoverFlow.WPFLib.csproj.user
BSE.CoverFlow.WPFLib.csproj.vspscc
mssccprj.scc
vssver2.scc
Images
close.png
exit.png
next.png
next_disabled.png
Note.jpg
pause.png
PlayButton.png
previous.png
previous_disabled.png
stop.png
vssver2.scc
Properties
Settings.settings
vssver2.scc
Resources
vssver2.scc
BSE.Platten.Admin
BSE.Platten.Admin.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
Settings.settings
vssver2.scc
Resources
Album16.gif
BSEadmin.ico
cdimport.png
cdrip.png
cd_hoeren.png
clearsearch.png
DataContainer_MoveFirsHS.png
DataContainer_MoveLastHS.png
DataContainer_MoveNextHS.png
DataContainer_MovePreviousHS.png
DataContainer_NewRecordHS.png
diskinfo.png
DRIVEDSC.png
DRIVENET.png
Edit_UndoHS.png
exportimage.png
findfile.png
FindHS.png
freedb.png
Genre16.png
Image.png
InsertPictureHS.png
Interpret16.png
OptionsHS.png
PieChart3DHS.png
PieChartHS.png
ProtectFormHS.png
RefreshDocViewHS.png
saveHS.png
search.png
song.png
system.png
tagger.png
tools_16.png
vssver2.scc
BSE.Platten.Admin.WinApp
BSE.Platten.Admin.WinApp.csproj.user
BSE.Platten.Admin.WinApp.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
Settings.settings
vssver2.scc
Resources
BSEadmin.ico
vssver2.scc
BSE.Platten.Audio
bse.ico
BSE.Platten.Audio.csproj.vspscc
mssccprj.scc
vssver2.scc
Options
vssver2.scc
Player
vssver2.scc
Properties
vssver2.scc
Resources
FillDownHS.png
FillLeftHS.png
Folder256.png
FolderFind.png
FolderOpen256.png
GoLtrHS.png
MoveNext.png
MovePrevious.png
OptionsHS.png
PauseHS.png
PlayHS.png
Slider.gif
Start.png
StopHS.png
vssver2.scc
WinControls
vssver2.scc
WMFSDK
vssver2.scc
BSE.Platten.BO
BSE.Platten.BO.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
vssver2.scc
BSE.Platten.Common
BSE.Platten.Common.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
vssver2.scc
Resources
BSEsplash.png
DRIVEDSC.png
DRIVENET.png
Network.png
splash.png
vssver2.scc
BSE.Platten.Covers
BSE.Platten.Covers.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
Settings.settings
vssver2.scc
BSE.Platten.FreeDb
BSE.Platten.FreeDb.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
vssver2.scc
Resources
OpenCD.png
vssver2.scc
BSE.Platten.Ripper
BSE.Platten.Ripper.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
vssver2.scc
Resources
OpenCD.png
OptionsHS.png
vssver2.scc
BSE.Platten.Statistik
BSE.Platten.Statistik.csproj.vspscc
mssccprj.scc
vssver2.scc
Properties
vssver2.scc
BSE.Platten.Tunes
BSE.Platten.Tunes.csproj.user
BSE.Platten.Tunes.csproj.vspscc
mssccprj.scc
vssver2.scc
Filters
vssver2.scc
Properties
Settings.settings
vssver2.scc
Resources
About.png
Album16.gif
AudioCD.png
AudioFile.png
AutoList.png
broadcast.png
BSE.png
BSEAbout.png
BSEsplash.png
BSEtunes.ico
BSE_16.png
cd_hoeren.png
coverflow.png
DataContainer_MoveNextHS.png
delete.gif
diskinfo.png
Filter2HS.png
FindHS.png
Folder256.png
FolderOpen256.png
Genre16.gif
Interpret16.gif
keinBild.gif
NewPlaylist16.gif
OptionsHS.png
PauseHS.png
RefreshDocViewHS.png
Removabledrive.png
saveHS.png
search.png
shuffle.png
Shuffle_icon.png
song.png
splash1.png
StopHS.png
TaskHS.png
TrackInfo.gif
vssver2.scc
wiedergabe16.gif
BSEadminSetup
BSEadminSetup.vdproj
BSEadminSetup.vdproj.vspscc
mssccprj.scc
vssver2.scc
Debug
Release
BSEtunesSetup
BSEtunesSetup.vdproj
BSEtunesSetup.vdproj.vspscc
mssccprj.scc
vssver2.scc
Debug
Release
dll
BSE.CDDrives.DLL
BSE.Charts.DLL
BSE.Configuration.DLL
BSE.RemovableDrives.DLL
BSE.Shell.DLL
BSE.Windows.Forms.DLL
Lame
lame_enc.dll
vssver2.scc
lame-3.97
BSE.Platten_en.zip
BSE.CoverFlow.WPFLib.csproj.user
close.png
exit.png
next.png
next_disabled.png
Note.jpg
pause.png
PlayButton.png
previous.png
previous_disabled.png
stop.png
vssver2.scc
Settings.settings
vssver2.scc
vssver2.scc
BSE.Platten.Admin.csproj.user
Settings.settings
vssver2.scc
Album16.gif
BSEadmin.ico
cdimport.png
cdrip.png
cd_hoeren.png
clearsearch.png
DataContainer_MoveFirsHS.png
DataContainer_MoveLastHS.png
DataContainer_MoveNextHS.png
DataContainer_MovePreviousHS.png
DataContainer_NewRecordHS.png
diskinfo.png
DRIVEDSC.png
DRIVENET.png
Edit_UndoHS.png
exportimage.png
findfile.png
FindHS.png
freedb.png
Genre16.png
Image.png
InsertPictureHS.png
Interpret16.png
OptionsHS.png
PieChart3DHS.png
PieChartHS.png
ProtectFormHS.png
RefreshDocViewHS.png
saveHS.png
search.png
song.png
system.png
tagger.png
tools_16.png
vssver2.scc
BSE.Platten.Admin.WinApp.csproj.user
Settings.settings
vssver2.scc
BSEadmin.ico
vssver2.scc
bse.ico
BSE.Platten.Audio.csproj.user
vssver2.scc
vssver2.scc
vssver2.scc
FillDownHS.png
FillLeftHS.png
Folder256.png
FolderFind.png
FolderOpen256.png
GoLtrHS.png
MoveNext.png
MovePrevious.png
OptionsHS.png
PauseHS.png
PlayHS.png
Slider.gif
Start.png
StopHS.png
vssver2.scc
vssver2.scc
vssver2.scc
BSE.Platten.BO.csproj.user
vssver2.scc
BSE.Platten.Common.csproj.user
vssver2.scc
BSEsplash.png
DRIVEDSC.png
DRIVENET.png
Network.png
splash.png
vssver2.scc
BSE.Platten.Covers.csproj.user
Settings.settings
vssver2.scc
BSE.Platten.FreeDb.csproj.user
vssver2.scc
OpenCD.png
vssver2.scc
AudioWriter
vssver2.scc
BSE.Platten.Ripper.csproj.user
Lame
vssver2.scc
vssver2.scc
OpenCD.png
OptionsHS.png
vssver2.scc
BSE.Platten.Statistik.csproj.user
vssver2.scc
BSE.Platten.Tunes.csproj.user
vssver2.scc
Settings.settings
vssver2.scc
About.png
Album16.gif
AudioCD.png
AudioFile.png
AutoList.png
broadcast.png
BSE.png
BSEAbout.png
BSEsplash.png
BSEtunes.ico
BSE_16.png
cd_hoeren.png
coverflow.png
DataContainer_MoveNextHS.png
delete.gif
diskinfo.png
Filter2HS.png
FindHS.png
Folder256.png
FolderOpen256.png
Genre16.gif
Interpret16.gif
keinBild.gif
NewPlaylist16.gif
OptionsHS.png
PauseHS.png
RefreshDocViewHS.png
Removabledrive.png
saveHS.png
search.png
shuffle.png
Shuffle_icon.png
song.png
splash1.png
StopHS.png
TaskHS.png
TrackInfo.gif
vssver2.scc
wiedergabe16.gif
BSEadminSetup.vdproj
BSEtunesSetup.vdproj
BSE.CDDrives.DLL
BSE.Charts.DLL
BSE.Configuration.DLL
BSE.RemovableDrives.DLL
BSE.Shell.DLL
BSE.ThreadedShell.DLL
BSE.Windows.Forms.DLL
lame_enc.dll
MySQL.chm.zip
MySQL.chm
MySqlCreateDataBase5x.sql.zip
using System;

namespace BSE.Platten.BO
{
	/// <summary>
	/// Zusammenfassung f�r CTrack.
	/// </summary>
	public class CTrack : ICloneable
	{
		
		#region FieldsPrivate
		
		private int m_iTitelId;
		private int m_iLiedId;
		private int m_iIndex;
		private int m_iCDIndex;
		private int m_iTrackNumber;
		private string m_strInterpret;
		private string m_strAlbum;
		private string m_strTitle;
		private int m_iYear;
		private int m_iMediumId;
		private string m_strMedium;
		private int m_iGenreId;
		private string m_strGenre;
		private System.Drawing.Image m_imgCover;
        private System.Drawing.Image m_imgTumbNail;
		private DateTime m_dDuration;
		private uint m_iTrackSize;
		private CAudioFormat.AudioFormat m_eUsedAudioFormat;
		private string m_strFileName;
		private string m_strFileFullName;
        private string m_strExtension;
        private string m_strIdentifier;
		
		#endregion
		
		#region Properties
		
		/// <summary>
		/// Gets or sets the id of the album.
		/// </summary>
		public int TitelId
		{
			get {return this.m_iTitelId;}
			set {this.m_iTitelId = value;}
		}
		/// <summary>
		/// Gets or sets the id of the track.
		/// </summary>
		public int LiedId
		{
			get {return this.m_iLiedId;}
			set {this.m_iLiedId = value;}
		}
		/// <summary>
		/// Gets or sets the index of the track.
		/// </summary>
		public int Index
		{
			get {return this.m_iIndex;}
			set {this.m_iIndex = value;}
		}
		/// <summary>
		/// Gets or sets the cd index of the track beginning at 1.
		/// </summary>
		public int CDIndex
		{
			get {return this.m_iCDIndex;}
			set {this.m_iCDIndex = value;}
		}
		/// <summary>
		/// Gets or sets the tracknumber of the track.
		/// </summary>
		public int TrackNumber
		{
			get {return this.m_iTrackNumber;}
			set {this.m_iTrackNumber = value;}
		}
		/// <summary>
		/// Gets or sets the interpret of the track.
		/// </summary>
		public string Interpret
		{
			get {return this.m_strInterpret;}
			set {this.m_strInterpret = value;}
		}
		/// <summary>
		/// Gets or sets the album of the track.
		/// </summary>
		public string Album
		{
			get {return this.m_strAlbum;}
			set {this.m_strAlbum = value;}
		}

		/// <summary>
		/// Gets or sets the title of the track.
		/// </summary>
		public string Title
		{
			get {return this.m_strTitle;}
			set {this.m_strTitle = value;}
		}
		/// <summary>
		/// Gets or sets the year of the tracks album.
		/// </summary>
		public int Year
		{
			get {return this.m_iYear;}
			set {this.m_iYear = value;}
		}
		/// <summary>
		/// Gets or sets the mediumid of the tracks album.
		/// </summary>
		public int MediumId
		{
			get {return this.m_iMediumId;}
			set {this.m_iMediumId = value;}
		}
		/// <summary>
		/// Gets or sets the medium of the tracks album.
		/// </summary>
		public string Medium
		{
			get {return this.m_strMedium;}
			set {this.m_strMedium = value;}
		}
		/// <summary>
		/// Gets or sets the genreid of the tracks album.
		/// </summary>
		public int GenreId
		{
			get {return this.m_iGenreId;}
			set {this.m_iGenreId = value;}
		}
		/// <summary>
		/// Gets or sets the genre of the tracks album.
		/// </summary>
		public string Genre
		{
			get {return this.m_strGenre;}
			set {this.m_strGenre = value;}
		}
		/// <summary>
		/// Gets or sets the cover of the tracks album.
		/// </summary>
		public System.Drawing.Image Cover
		{
			get {return this.m_imgCover;}
			set {this.m_imgCover = value;}
		}
        /// <summary>
        /// Gets or sets the thumbnail of the tracks album.
        /// </summary>
        public System.Drawing.Image ThumbNail
        {
            get { return this.m_imgTumbNail; }
            set { this.m_imgTumbNail = value; }
        }
		/// <summary>
		/// Gets or sets the duration of the track.
		/// </summary>
		public DateTime Duration
		{
			get {return this.m_dDuration;}
			set {this.m_dDuration = value;}
		}
		/// <summary>
		/// Gets or sets the size of the track.
		/// </summary>
		public uint TrackSize
		{
			get {return this.m_iTrackSize;}
			set {this.m_iTrackSize = value;}
		}
		/// <summary>
		/// Gets or sets the audioformat of the track.
		/// </summary>
		public CAudioFormat.AudioFormat UsedAudioFormat
		{
			get {return this.m_eUsedAudioFormat;}
			set {this.m_eUsedAudioFormat = value;}
		}
		/// <summary>
		/// Gets or sets the name of the track.
		/// </summary>
		public string FileName
		{
			get {return this.m_strFileName;}
			set {this.m_strFileName = value;}
		}
		/// <summary>
		/// Gets or sets the full path of the directory or track.
		/// </summary>
		public string FileFullName
		{
			get {return this.m_strFileFullName;}
			set {this.m_strFileFullName = value;}
		}
        /// <summary>
        /// Gets or sets the string representing the extension part of the track file.
        /// </summary>
        public string Extension
        {
            get { return m_strExtension; }
            set { m_strExtension = value; }
        }
		/// <summary>
		/// Gets or sets the track identifier.
		/// </summary>
		public string Identifier
		{
			get {return this.m_strIdentifier;}
			set {this.m_strIdentifier = value;}
		}
		
		#endregion

		#region MethodsPublic

		public CTrack()
		{
			//
			// TODO: F�gen Sie hier die Konstruktorlogik hinzu
			//
		}
		
		/// <summary>
		/// Creates a new object that is a copy of the current track.
		/// </summary>
		/// <returns>A new object that is a copy of this track.</returns>
		public virtual object Clone()
		{
			CTrack track = new CTrack();
			track.TitelId = this.m_iTitelId;
			track.LiedId = this.m_iLiedId;
			track.Index = this.m_iIndex;
			track.CDIndex = this.m_iCDIndex;
			track.TrackNumber = this.m_iTrackNumber;
            if (string.IsNullOrEmpty(this.m_strInterpret) == false)
            {
                track.Interpret = (string)this.m_strInterpret.Clone(); ;
            }
            if (string.IsNullOrEmpty(this.m_strAlbum) == false)
            {
                track.Album = (string)this.m_strAlbum.Clone();
            }
            if (string.IsNullOrEmpty(this.m_strTitle) == false)
            {
                track.Title = (string)this.m_strTitle.Clone();
            }
			track.Year = this.m_iYear;
			track.MediumId = this.m_iMediumId;
			track.Medium = this.m_strMedium;
			track.GenreId = this.m_iGenreId;
            if (string.IsNullOrEmpty(this.m_strGenre) == false)
            {
                track.Genre = (string)this.m_strGenre.Clone();
            }
            if (this.m_imgCover != null)
            {
                track.Cover = (System.Drawing.Image)this.m_imgCover.Clone();
            }
            if (this.m_imgTumbNail != null)
            {
                track.ThumbNail = (System.Drawing.Image)this.m_imgTumbNail.Clone();
            }
			track.Duration = this.m_dDuration;
			track.TrackSize = this.TrackSize;
            if (string.IsNullOrEmpty(this.m_strFileName) == false)
            {
                track.FileName = (string)this.m_strFileName.Clone();
            }
            if (string.IsNullOrEmpty(this.m_strFileFullName) == false)
            {
                track.FileFullName = (string)this.m_strFileFullName.Clone();
            }
            if (string.IsNullOrEmpty(this.m_strExtension) == false)
            {
                track.Extension = (string)this.m_strExtension.Clone();
            }
            if (this.m_strIdentifier != null)
            {
                track.Identifier = (string)this.m_strIdentifier.Clone();
            }
			
			return (object)track;
		}

		#endregion

	}
}

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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Uwe Eichkorn
Switzerland Switzerland
No Biography provided

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150603.1 | Last Updated 24 Apr 2010
Article Copyright 2009 by Uwe Eichkorn
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid