Beispiel #1
0
        public bool LoadImportFile(string _fileName)
        {
            m_importFile = null;
            if (File.Exists(_fileName))
            {
                progressMessage("Loading file....", true);
                switch (ImportFormat)
                {
                case ImportFormatType.M3U:
                    m_importFile = ImportFileM3U.loadM3UFile(_fileName);
                    break;

                case ImportFormatType.WPL:
                    m_importFile = ImportFileWPL.loadWPLFile(_fileName);
                    break;
                    //case ImportFormatType.XSPF:
                    // TODO
                    //  break;
                }
                if (m_importFile != null)
                {
                    updateSectionLocations();
                    return(true);
                }
            }
            return(false);
        }