www.pudn.com > Fetion.rar > ExportContactsToXML.cs


namespace Imps.Client.Pc 
{ 
    using Imps.Client.Resource; 
    using System; 
    using System.IO; 
    using System.Windows.Forms; 
 
    internal class ExportContactsToXML : IExportContacts 
    { 
        public void ExportContacts(IWin32Window owner, string filePath, string xmlContacts) 
        { 
            using (StreamWriter writer = new StreamWriter(filePath, false, ImportExportManager.FileEncoding)) 
            { 
                writer.Write("\r\n" + xmlContacts); 
            } 
        } 
 
        public string Filter 
        { 
            get 
            { 
                return string.Format("{0} files (*.fcl)|*.fcl", AppDictionary.ShortEnglishName); 
            } 
        } 
    } 
}