Beispiel #1
0
        private void BTN_m3u_Click(object sender, EventArgs e)
        {
            LBOX_mp3.Items.Clear();
            TXT_m3u.Text      = string.Empty;
            OpenList.FileName = string.Empty;
            size         = 0;
            enable_check = false;

            if (OpenList.ShowDialog() == DialogResult.OK)
            {
                manager = new M3uManager(OpenList.FileName);
                StringDictionary list = manager.List;

                if (list != null)
                {
                    TXT_m3u.Text = OpenList.FileName;

                    foreach (string title in list.Keys)
                    {
                        LBOX_mp3.Items.Add(title, true);
                        size = size + manager.Get_File_size(title);
                    }
                    enable_check        = true;
                    Lbl_Size2.Text      = size.ToString();
                    LbL_TotalFiles.Text = list.Count.ToString();
                }
                else
                {
                    MessageBox.Show("There is a problem with this list");
                    OpenList.FileName = string.Empty;
                }
            }
        }
Beispiel #2
0
 public M3uData(M3uManager m, string f, CheckedListBox clb)
 {
     mngr    = m;
     folder  = f;
     listbox = clb;
 }
Beispiel #3
0
 public Progress(M3uManager m, string f, CheckedListBox clb)
 {
     InitializeComponent();
     msg = new M3uData(m, f, clb);
 }