public PlayButton(string title, Model.Sound sound, int _x, int _y, int _width, int _heigth)
        {
            int index = getNextIndex();

            this.Name = "playButton" + Convert.ToString(index);
            this.TabIndex = index;
            this.Text = title;
            this.UseVisualStyleBackColor = true;

            this.sound = sound;

            this.x = _x;
            this.y = _y;
            this.width = _width;
            this.height = _heigth;

            //Console.WriteLine(Path.Combine(Application.StartupPath, fileName));
            //this.__player = new SoundPlayer(Path.Combine(Application.StartupPath, fileName));

            //this.Click += new System.EventHandler(this.onClick);
        }
Esempio n. 2
0
 public Sound(DataRow dr)
 {
     DBType = dr["Type"].ToString().ToLower();
     Model  = new Model.Sound(dr);
 }
Esempio n. 3
0
 public Sound(int?id)
 {
     Model = new Model.Sound(id);
 }
Esempio n. 4
0
 public Sound()
 {
     Model = new Model.Sound();
 }