Esempio n. 1
0
        private void Parsefname(string fname, string tn)
        {
            ListViewItem lvi;

            string[]   aHeaders = new string[7];
            ParseTrack pt       = new ParseTrack(fname, COMBtagfile.Text);

            if (pt.GetTrackNumber != null)
            {
                aHeaders[0] = pt.GetTrackNumber;
            }
            else
            {
                aHeaders[0] = tn;
            }

            aHeaders[1] = pt.GetTitle;
            aHeaders[2] = TXTyear.Text;//year
            if (TXTartist.Text != "")
            {
                aHeaders[3] = TXTartist.Text;
            }
            else
            {
                aHeaders[3] = pt.GetArtist;
            }

            aHeaders[4] = TXTalbum.Text;
            aHeaders[5] = CMBgenre.Text;
            aHeaders[6] = fname;
            lvi         = new ListViewItem(aHeaders);
            this.LSVtrack.Items.Add(lvi);
        }
Esempio n. 2
0
 private void LSVtrack_SelectedIndexChanged(object sender, EventArgs e)
 {
     ListView.SelectedListViewItemCollection filename = this.LSVtrack.SelectedItems;
     foreach (ListViewItem item in filename)
     {
         ParseTrack pt = new ParseTrack(item.SubItems[6].Text, COMBtagfile.Text);
         TXTtrackno.Text = pt.GetTrackNumber;
     }
 }
Esempio n. 3
0
 private void LSVtrack_SelectedIndexChanged(object sender, EventArgs e)
 {
     ListView.SelectedListViewItemCollection filename = this.LSVtrack.SelectedItems;
     foreach (ListViewItem item in filename)
     {
         ParseTrack pt = new ParseTrack(item.SubItems[6].Text, COMBtagfile.Text);
         TXTtrackno.Text = pt.GetTrackNumber;
     }
 }
Esempio n. 4
0
        private void Parsefname(string fname, string tn)
        {
            ListViewItem lvi;
            string[] aHeaders = new string[7];
            ParseTrack pt = new ParseTrack(fname, COMBtagfile.Text);
            if (pt.GetTrackNumber != null)
            {
                aHeaders[0] = pt.GetTrackNumber;
            }
            else aHeaders[0] = tn;

            aHeaders[1] = pt.GetTitle;
            aHeaders[2] = TXTyear.Text;//year
            if (TXTartist.Text != "")
            {
                aHeaders[3] = TXTartist.Text;
            }
            else aHeaders[3] = pt.GetArtist;

            aHeaders[4] = TXTalbum.Text;
            aHeaders[5] = CMBgenre.Text;
            aHeaders[6] = fname;
            lvi = new ListViewItem(aHeaders);
            this.LSVtrack.Items.Add(lvi);
        }