public MainForm() { InitializeComponent(); this.Text = String.Empty; this.FormBorderStyle = FormBorderStyle.None; this.ControlBox = false; this.DoubleBuffered = true; this._playBackDevice = new CoreAudioController().DefaultPlaybackDevice; this._allSong = new List <string>(); this.musicProcessBar.Enabled = false; setup(); this.DoubleBuffered = true; this._mediaForm = new MediaForm(this, this._playedList); this._pictureForm = new PictureForm(this); this._videoForm = new VideoForm(); this._playListForm = new PlayListForm(this); this._nowPlayingForm = new NowPlayingForm(); this._mediaForm.UserChoiceChanged += playButton_Click; this._nowPlayingForm.FormBorderStyle = FormBorderStyle.None; this._nowPlayingForm.TopLevel = false; this.Dock = DockStyle.Left; this.mainBotPanel.Controls.Add(this._nowPlayingForm); _nowPlayingForm.BringToFront(); this._nowPlayingForm.Visible = false; this.backwardButton.Visible = false; }
public MediaForm(MainForm parent, PlayListForm playListParent, List <String> list) { this._list = list; this._parent = parent; this._playListParent = playListParent; InitializeComponent(); this._songInfo = new List <SongInfoForm>(); this._ablum = new List <String>(); this._title = new List <String>(); this._length = new List <String>(); this._firstPerformer = new List <String>(); this._songImg = new List <Image>(); }