Example #1
0
 private void searchSongsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     selectedTable            = DBAccessor.selectAllTable("SongView");
     CurrentTable             = "SongView";
     dataGridView1.DataSource = new BindingSource(selectedTable, null);
     dataGridView1.Columns["Filepath"].Visible = false;
 }
Example #2
0
        private void searchReviewsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            selectedTable = DBAccessor.selectAllTable("ReviewView");
            CurrentTable  = "ReviewView";

            dataGridView1.DataSource = new BindingSource(selectedTable, null);
        }
Example #3
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            ComboBox cmb  = (ComboBox)(sender);
            String   text = cmb.Text;

            Console.WriteLine(text);
            //GetSelectedRowNumber();
            selectedTable            = DBAccessor.selectAllTable(text);
            dataGridView1.DataSource = new BindingSource(selectedTable, null);
        }
Example #4
0
        private void UpdateTables()
        {
            DataTable dt = DBAccessor.selectAllWhere("PlaylistView", "[Playlist Name]", PlaylistName);

            CurrentTable = dt;
            this.CurrentPlaylistDataGrid.DataSource = new BindingSource(dt, null);

            dt = DBAccessor.selectAllTable("MediaView");
            this.AllMediaDataGrid.DataSource = new BindingSource(dt, null);
        }
Example #5
0
        public DisplayWindow()
        {
            InitializeComponent();
            this.Text                = "Maestro: Guest User";
            Manager                  = new MediaManager();
            CurrentTable             = "SongView";
            selectedTable            = DBAccessor.selectAllTable(CurrentTable);
            dataGridView1.DataSource = new BindingSource(selectedTable, null);
            dataGridView1.Columns["Filepath"].Visible = false;
//            byte[] address = { 137, 112, 128, 188 };
//            streamer = new MediaStreamer(new System.Net.IPAddress(address), 6600, 8000);

//            streamer.Play();
        }
Example #6
0
 private void searchAllPlaylistsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     selectedTable            = DBAccessor.selectAllTable("Playlist");
     dataGridView1.DataSource = new BindingSource(selectedTable, null);
 }