//XMLファイルから読み込み
        internal void ReadXML()
        {
            try
            {
                XmlDocument XMLDoc = new XmlDocument();

                XMLDoc.Load(fileName + @"\test.xml");

                XmlNodeList XmlNodeCount = XMLDoc.GetElementsByTagName("Rental");

                for (int cnode = 0; cnode <= XmlNodeCount.Count - 1; cnode++)
                {
                    XmlNodeList XmlNodeRegistDay = XMLDoc.GetElementsByTagName("RegistDay");
                    XmlNodeList XmlNodeMediaType = XMLDoc.GetElementsByTagName("MediaType");
                    XmlNodeList XmlNodeTitle     = XMLDoc.GetElementsByTagName("Title");
                    XmlNodeList XmlNodePeriod    = XMLDoc.GetElementsByTagName("Period");
                    string      regist           = XmlNodeRegistDay[cnode].InnerText;
                    string      mediatype        = XmlNodeMediaType[cnode].InnerText;
                    string      title            = XmlNodeTitle[cnode].InnerText;
                    string      period           = XmlNodePeriod[cnode].InnerText;

                    RetentionData SaveData = new RetentionData(regist, mediatype, title, period);
                    StoreData.Add(SaveData);
                }
            }
            //catch (FileNotFoundException)
            //{
            //    XmlTextWriter SaveXML = new XmlTextWriter(fileName + @"\test.xml", null);
            //    SaveXML.Close();
            //}
            catch (Exception)
            {
                //MessageBox.Show(excep.ToString());
            }
        }
 //メモリ上にデータを保存する。
 internal void SaveToFile(string MediaKind, string MediaName, string Period)
 {
     try
     {
         Period = CalucPeriodDate(today, Period);
         RetentionData SaveData = new RetentionData(today, MediaKind, MediaName, Period);
         StoreData.Add(SaveData);
     }
     catch (FormatException)
     {
         MessageBox.Show("期間日数を数字で\n入力してください。");
     }
 }