Exemplo n.º 1
0
		private void detach_dePlayList(dePlayList entity)
		{
			this.SendPropertyChanging();
			entity.caPlayList = null;
		}
Exemplo n.º 2
0
		private void attach_dePlayList(dePlayList entity)
		{
			this.SendPropertyChanging();
			entity.caPlayList = this;
		}
Exemplo n.º 3
0
 partial void DeletedePlayList(dePlayList instance);
Exemplo n.º 4
0
 partial void UpdatedePlayList(dePlayList instance);
Exemplo n.º 5
0
 partial void InsertdePlayList(dePlayList instance);
Exemplo n.º 6
0
        private void pbNewVideo_Click(object sender, EventArgs e)
        {
            openFileDialog.DefaultExt = ".mpg";
            openFileDialog.Filter = "Media Files|*.mpg;*.mp4;*.avi;*.wma;*.mov;*.wav;*.mp2;*.mp3|All Files|*.*";
            openFileDialog.Title = "Incluir video a lista de reproducción";
            openFileDialog.Multiselect = true;

            if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK) {

                foreach (String file in openFileDialog.FileNames)
                {
                    dePlayList item = new dePlayList();
                    item.videoPath = file;
                    item.fIns = DateTime.Now;

                    dePlayListBindingSource.Add(item);
                }
                gdVideos.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.DisplayedCells);
            }
        }