|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Media_Player_Registry
{
class Song
{
private string song_name;
private bool active_song;
private bool mute;
public Song()
{
this.active_song = false;
this.mute = false;
}
public Song(string _song_name)
{
this.song_name = _song_name;
this.mute = false;
this.active_song = false;
}
public string BaseName()
{
string basename = "";
string tmp_basename = "";
for (int i = 0; i < this.song_name.Length; i++)
{
// Override tmp
tmp_basename = this.song_name.Substring(i);
//System.Windows.Forms.MessageBox.Show("letter: " + this.song_name[i] + " indexof: " + tmp_basename.IndexOf(@"\").ToString());
if (tmp_basename.IndexOf(@"\") == -1)
{
basename += this.song_name[i];
}
}
return basename;
}
public string Song_Name
{
get { return this.song_name; }
set { this.song_name = value; }
}
public bool Is_Active
{
get { return this.active_song; }
set { this.active_song = value; }
}
public bool Is_Mute
{
get { return this.mute; }
set { this.mute = value; }
}
}
}
|
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.
I starterd learning programin in 15th age with C#.
I started to learn WEB Develop and learn all the basics and JavaScript & AJAX, XML, PHP & ASP.NET & SQL.
Today i am a web developer using PHP 5 OR C# ASP.NET Framework to create expert applications.
I am Zend PHP 5 Certificated Developer (http://zend.com/zce.php?c=ZEND010208&r=231721370), and learning new for the MCPD.