示例#1
0
文件: Form1.cs 项目: sdvpl/SongList
 private void ViewSongListButton_Click(object sender, EventArgs e)
 {
     AlbumTrackListView.Hide();
     ArtstAlbumSearchListView.Hide();
     SongListView.Show();
     InstructionLabel3.Text = "Click on an track name to remove it from the song list.";
 }
示例#2
0
文件: Form1.cs 项目: sdvpl/SongList
 private void ShowAlbumSearch()
 {
     ArtstAlbumSearchListView.Show();
     AlbumTrackListView.Hide();
     SongListView.Hide();
     InstructionLabel3.Text = "Click on an album name to display Track List.";
 }
示例#3
0
        private void Form1_Load(object sender, System.EventArgs e)
        {
            // ArtstAlbumSearchListView Columns
            ColumnHeader ArtistColumn, header1, header2;

            ArtistColumn = new ColumnHeader();
            header1      = new ColumnHeader();
            header2      = new ColumnHeader();

            ArtistColumn.Text      = "Artist/Band";
            ArtistColumn.TextAlign = HorizontalAlignment.Left;
            ArtistColumn.Width     = 250;

            header1.Text      = "Release";
            header1.TextAlign = HorizontalAlignment.Left;
            header1.Width     = 250;

            header2.TextAlign = HorizontalAlignment.Left;
            header2.Text      = "Release Date";
            header2.Width     = 250;

            ArtstAlbumSearchListView.Columns.Add(ArtistColumn);
            ArtstAlbumSearchListView.Columns.Add(header1);
            ArtstAlbumSearchListView.Columns.Add(header2);
            ArtstAlbumSearchListView.View = View.Details;
            AlbumTrackListView.Hide();



            //SongListView Columns
            ColumnHeader header3, header4, header34;

            header3  = new ColumnHeader();
            header4  = new ColumnHeader();
            header34 = new ColumnHeader();

            header3.Text      = "Artist/Band ";
            header3.TextAlign = HorizontalAlignment.Left;
            header3.Width     = 250;

            header4.TextAlign = HorizontalAlignment.Left;
            header4.Text      = "Album Title";
            header4.Width     = 250;

            header34.TextAlign = HorizontalAlignment.Left;
            header34.Text      = "Track Name";
            header34.Width     = 250;

            SongListView.Columns.Add(header3);
            SongListView.Columns.Add(header4);
            SongListView.Columns.Add(header34);
            SongListView.View = View.Details;



            //AlbumTrackListView Columns
            ColumnHeader column0 = new ColumnHeader();

            column0.Text      = "Artist/Band";
            column0.Width     = 250;
            column0.TextAlign = HorizontalAlignment.Left;

            ColumnHeader column1 = new ColumnHeader();

            column1.Text      = "Album Title";
            column1.Width     = 250;
            column1.TextAlign = HorizontalAlignment.Left;

            ColumnHeader column2 = new ColumnHeader();

            column2.Text      = "Track Name";
            column2.Width     = 250;
            column2.TextAlign = HorizontalAlignment.Left;

            AlbumTrackListView.Columns.Add(column0);
            AlbumTrackListView.Columns.Add(column1);
            AlbumTrackListView.Columns.Add(column2);
            AlbumTrackListView.View = View.Details;
        }