Exemplo n.º 1
0
        private void buttonEqSave_Click(object sender, RoutedEventArgs e)
        {
            string fileName = BrowseSaveFile(m_ppwEqFilter);

            if (fileName.Length <= 0)
            {
                AddFirLog("EQ保存処理中断。\r\n");
                return;
            }

            FirSave p = new FirSave();

            p.FreqGainTable.Clear();
            p.FreqGainTable.AddRange(m_freqGainTable);
            var  xmlRW  = new WWXmlRW.XmlRW <FirSave>(fileName, false);
            bool result = xmlRW.Save(p);

            if (result)
            {
                AddFirLog(string.Format("EQ保存処理成功。{0}\r\n", fileName));
            }
            else
            {
                AddFirLog(string.Format("EQ保存処理失敗。{0}\r\n", fileName));
            }
        }
Exemplo n.º 2
0
 public static bool Save(Preference p)
 {
     var xmlRW = new WWXmlRW.XmlRW<Preference>(m_fileName);
     return xmlRW.Save(p);
 }
Exemplo n.º 3
0
        public static bool Save(Preference p)
        {
            var xmlRW = new WWXmlRW.XmlRW <Preference>(m_fileName);

            return(xmlRW.Save(p));
        }
 public static bool SaveAs(PlaylistSave p, string path)
 {
     var xmlRW = new WWXmlRW.XmlRW<PlaylistSave>(path, false);
     return xmlRW.Save(p);
 }
 public static bool Save(PlaylistSave p)
 {
     var xmlRW = new WWXmlRW.XmlRW<PlaylistSave>(m_fileName, true);
     return xmlRW.Save(p);
 }
Exemplo n.º 6
0
        public static bool SaveAs(PlaylistSave p, string path)
        {
            var xmlRW = new WWXmlRW.XmlRW <PlaylistSave>(path, false);

            return(xmlRW.Save(p));
        }
Exemplo n.º 7
0
        public static bool Save(PlaylistSave p)
        {
            var xmlRW = new WWXmlRW.XmlRW <PlaylistSave>(m_fileName, true);

            return(xmlRW.Save(p));
        }
Exemplo n.º 8
0
        private void buttonEqSave_Click(object sender, RoutedEventArgs e)
        {
            string fileName = BrowseSaveFile(m_ppwEqFilter);
            if (fileName.Length <= 0) {
                AddFirLog("EQ保存処理中断。\r\n");
                return;
            }

            FirSave p = new FirSave();
            p.FreqGainTable.Clear();
            p.FreqGainTable.AddRange(m_freqGainTable);
            var xmlRW = new WWXmlRW.XmlRW<FirSave>(fileName, false);
            bool result = xmlRW.Save(p);
            if (result) {
                AddFirLog(string.Format("EQ保存処理成功。{0}\r\n", fileName));
            } else {
                AddFirLog(string.Format("EQ保存処理失敗。{0}\r\n", fileName));
            }
        }