Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

BSEtunes

, 24 Apr 2010
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
MySqlCreateDataBase5x.sql.zip
using System;
using System.Data;

namespace BSE.Platten.BO
{
	#region Class CDataSetGenre
	/// <summary>
	/// Zusammendfassende Beschreibung f�r C_DataSetMedium.
	/// </summary>
    [Serializable]
    public class CDataSetGenre : DataSet
	{
        #region Konstanten

        public const string SOURCETABLE = "Genre";

        #endregion
        #region FieldsPrivate

		private CDataTableGenre m_dataTableGenre;

		#endregion

		#region Properties

		[System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
		public CDataTableGenre Genre
		{
			get { return this.m_dataTableGenre; }
		}

		#endregion
		
		#region MethodsPublic

		public CDataSetGenre()
		{
			this.InitClass();
		}

		#endregion

		#region MethodsPrivate

		private void InitClass()
		{
			this.DataSetName = "DataSetMedium";
			this.Namespace = "";
			this.m_dataTableGenre = new CDataTableGenre();
			this.Tables.Add(this.m_dataTableGenre);
		}

		#endregion
	}

	#endregion

	#region Class CDataTableGenre

	public class CDataTableGenre : DataTable,System.Collections.IEnumerable
	{
		#region EventsPublic

		public event EventHandler<DataRowGenreChangeEventArgs> GenreChanged;
        public event EventHandler<DataRowGenreChangeEventArgs> GenreChanging;

		#endregion
		
		#region FieldsPrivate

		private DataColumn m_dataColumnGenreId;
		private DataColumn m_dataColumnGenre;
		private DataColumn m_dataColumnGuid;
		private DataColumn m_dataColumnTimestamp;

		#endregion

		#region Properties

		public int Count 
		{
			get { return this.Rows.Count; }
		}

		internal DataColumn DataColumnGenreId
		{
			get { return this.m_dataColumnGenreId; }
		}
		
		public DataColumn DataColumnGenre
		{
			get { return this.m_dataColumnGenre; }
		}
		
		internal DataColumn DataColumnGuid
		{
			get { return this.m_dataColumnGuid; }
		}

		internal DataColumn DataColumnTimestamp
		{
			get { return this.m_dataColumnTimestamp; }
		}

		public CDataRowGenre this[int iIndex]
		{
			get { return ((CDataRowGenre)(base.Rows[iIndex]));}
		}

		#endregion
		
		#region MethodsPublic

		public System.Collections.IEnumerator GetEnumerator() 
		{
			return base.Rows.GetEnumerator();
		}
		
		public void AddDataRowGenre(CDataRowGenre row) 
		{
			this.Rows.Add(row);
		}
		
		public CDataRowGenre FindByGenreId(int iGenreId) 
		{
			return ((CDataRowGenre)(this.Rows.Find(new Object[] {iGenreId})));
		}
		
		public new CDataRowGenre NewRow() 
		{
			return ((CDataRowGenre)(this.NewRow()));
		}

		#endregion

		#region MethodsProtected

		protected override System.Type GetRowType() 
		{
			return typeof(CDataRowGenre);
		}
		
		protected override DataRow NewRowFromBuilder(DataRowBuilder builder) 
		{
			// We need to ensure that all Rows in the tabled are typed rows.
			// Table calls newRow whenever it needs to create a row.
			// So the following conditions are covered by Row newRow(Record record)
			// * Cursor calls table.addRecord(record) 
			// * table.addRow(object[] values) calls newRow(record)    
            return new CDataRowGenre(builder);
		}
		
		protected override void OnRowChanged(DataRowChangeEventArgs e)
		{
			if (((this.GenreChanged) != (null)))
			{
				this.GenreChanged(this, new DataRowGenreChangeEventArgs(((CDataRowGenre)(e.Row)), e.Action));
			}
			base.OnRowChanged(e);
		}
		
		protected override void OnRowChanging(DataRowChangeEventArgs e)
		{
			if (((this.GenreChanging) != (null)))
			{
				this.GenreChanging(this, new DataRowGenreChangeEventArgs(((CDataRowGenre)(e.Row)), e.Action));
			}
			base.OnRowChanging(e);
		}

		#endregion

		#region MethodsPrivate
		
		internal CDataTableGenre() : base(CDataSetGenre.SOURCETABLE) 
		{
			this.InitClass();
		}

		private void InitClass() 
		{
			this.m_dataColumnGenreId = new DataColumn("GenreId", typeof(int), "", MappingType.Element);
			this.m_dataColumnGenreId.AllowDBNull = true;
			this.m_dataColumnGenreId.Unique = true;
			this.m_dataColumnGenreId.DefaultValue = -1;
			this.Columns.Add(this.m_dataColumnGenreId);
			this.m_dataColumnGenre = new DataColumn("Genre", typeof(string), "", MappingType.Element);
            this.m_dataColumnGenre.MaxLength = 100;
            this.Columns.Add(this.m_dataColumnGenre);
			this.m_dataColumnGuid = new DataColumn("Guid", typeof(string), "", MappingType.Element);
			this.Columns.Add(this.m_dataColumnGuid);
			this.m_dataColumnTimestamp = new DataColumn("Timestamp", typeof(DateTime), "", MappingType.Element);
			this.Columns.Add(this.m_dataColumnTimestamp);
            //Beim Merge k�nnen Rows nur zusammengef�hrt werden, wenn sie eine eindeutige
            //Beziehung haben. Diese Beziehung ist der Guid Wert
            this.PrimaryKey = new DataColumn[] { this.m_dataColumnGuid };
		}

		#endregion
	}

	#endregion

	#region Class CDataRowGenre

	public class CDataRowGenre : DataRow
	{
		#region FieldsPrivate
		
		private CDataTableGenre m_dataTableGenre;

		#endregion

		#region Properties

		public int GenreId
		{
			get 
			{
				return ((int)(this[this.m_dataTableGenre.DataColumnGenreId]));
			}
			set 
			{
				this[this.m_dataTableGenre.DataColumnGenreId] = value;
			}
		}
		
		public string Genre
		{
			get 
			{
				return ((string)(this[this.m_dataTableGenre.DataColumnGenre]));
			}
			set 
			{
				this[this.m_dataTableGenre.DataColumnGenre] = value;
			}
		}

		public string Guid
		{
			get 
			{
				return ((string)(this[this.m_dataTableGenre.DataColumnGuid]));
			}
			set 
			{
				this[this.m_dataTableGenre.DataColumnGuid] = value;
			}
		}
		
		public System.DateTime TimeStamp
		{
			get 
			{
				return ((System.DateTime)(this[this.m_dataTableGenre.DataColumnTimestamp]));
			}
			set 
			{
				this[this.m_dataTableGenre.DataColumnTimestamp] = value;
			}
		}

		#endregion

		#region MethodsPrivate

		internal CDataRowGenre(DataRowBuilder dataRowBuilder) : base(dataRowBuilder) 
		{
			this.m_dataTableGenre = ((CDataTableGenre)(this.Table));
		}

		#endregion
	}

	#endregion

	#region Class DataRowGenreChangeEvent

	public class DataRowGenreChangeEventArgs : EventArgs
	{
		#region FieldsPrivate
		
		private CDataRowGenre m_row;
		private System.Data.DataRowAction m_dataRowAction;

		#endregion

		#region Properties

		public CDataRowGenre Row
		{
			get {return this.m_row;}
		}

		public DataRowAction Action
		{
			get {return this.m_dataRowAction;}
		}

		#endregion

		#region MethodsPublic

		public DataRowGenreChangeEventArgs(CDataRowGenre row,DataRowAction dataRowAction)
		{
			this.m_row = row;
			this.m_dataRowAction = dataRowAction;
		}

		#endregion
	}

	#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

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