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); }
public Sound(DataRow dr) { DBType = dr["Type"].ToString().ToLower(); Model = new Model.Sound(dr); }
public Sound(int?id) { Model = new Model.Sound(id); }
public Sound() { Model = new Model.Sound(); }