private Dictionary <String, MyReaderMatchResult> LoadBMSFile(String filePath)
        {
            BMSFile bmsFile = new BMSFile();

            if (!bmsFile.Load(filePath))
            {
                return(null);
            }

            return(bmsFile.GetLearningResult());
        }
        private Boolean SaveBMSFile(String fileName)
        {
            Dictionary <String, MyReaderMatchResult> learningKeysData = new Dictionary <String, MyReaderMatchResult>();

            foreach (ListViewItem item in lvKeyList.Items)
            {
                learningKeysData.Add(item.Text, (MyReaderMatchResult)item.Tag);
            }

            if (learningKeysData.Count == 0)
            {
                Program.ShowError(Resources.E_NO_LEARNING_DATA_TO_SAVE);
                return(false);
            }

            BMSFile bmsFile = new BMSFile(learningKeysData);

            return(bmsFile.Save(fileName));
        }