Exemplo n.º 1
0
        /// <author>Kenneth Søhrmann</author>
        /// <summary>
        /// This mehod is invoked whenenver the "New Song"-button on the form
        /// is clicked. It creates a new SongInfoUpload instance.
        /// </summary>
        private void newSongButton_Click(object sender, EventArgs e)
        {
            var cu = new SongInfoUpload();
            cu.Publisher = this.PublisherAccount.PublisherName;

            songPropertyGrid.SelectedObject = cu;

            var item = new ListViewItem("<name>");
            item.SubItems.Add("<email>");

            this.dic.Add(cu, item);
            this.dic2.Add(item, cu);

            songListView.Items.Add(item);
        }
Exemplo n.º 2
0
        /// <author>Kenneth Søhrmann</author>
        /// <summary>
        /// This mehod is invoked whenenver the "New Song"-button on the form
        /// is clicked. It creates a new SongInfoUpload instance.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void newSongButton_Click(object sender, EventArgs e)
        {
            SongInfoUpload cu = new SongInfoUpload();
            songPropertyGrid.SelectedObject = cu;

            ListViewItem item = new ListViewItem("<name>");
            item.SubItems.Add("<email>");

            this.dic.Add(cu, item);
            this.dic2.Add(item, cu);

            songListView.Items.Add(item);
        }