示例#1
0
 public WebDavFileManager(bool IsAdmin)
 {
     salesAudioUri = ConfigManager.AppSettings["SalesAudioUri"];
     webDavLicense = XmlDecode(ConfigManager.AppSettings["WebDavLicense"]);
     string[] usernamePassword = ConfigManager.AppSettings["WebDavUsernamePassword"].Split('|');
     WebDavUserName = usernamePassword[0];
     WebDavPassword = usernamePassword[1];
     CommonApplicationData commonData = new CommonApplicationData("BrightVision", "BrightSales", true);
     commonData.CreateFolder(commonData.ApplicationFolderPath + "\\tmpwav");
     commonData.CreateFolder(commonData.ApplicationFolderPath + "\\cachewav");
     commonData.CreateFolder(commonData.ApplicationFolderPath + "\\errorconversion");
 }
示例#2
0
 public WebDavFileManager()
 {
     salesAudioUri = ConfigManager.AppSettings["SalesAudioUri"];
     webDavLicense = XmlDecode(ConfigManager.AppSettings["WebDavLicense"]);
     string[] usernamePassword = ConfigManager.AppSettings["WebDavUsernamePassword"].Split('|');
        WebDavUserName = usernamePassword[0];
        WebDavPassword = usernamePassword[1];
        backWorkerUploader = new BackgroundWorker();
        backWorkerAudioConverter = new BackgroundWorker();
        backWorkerCheckWebDavConnection = new BackgroundWorker();
        backWorkerAudioConverter.WorkerSupportsCancellation = true;
        backWorkerUploader.WorkerSupportsCancellation = true;
        backWorkerCheckWebDavConnection.WorkerSupportsCancellation = true;
        //backWorkerUploader.DoWork += new DoWorkEventHandler(backWorkerUploader_DoWork);
        //backWorkerAudioConverter.DoWork += new DoWorkEventHandler(backWorkerAudioConverter_DoWork);
        //backWorkerCheckWebDavConnection.DoWork += new DoWorkEventHandler(backWorkerCheckWebDavConnection_DoWork);
        CommonApplicationData commonData = new CommonApplicationData("BrightVision", "BrightSales", true);
        commonData.CreateFolder(commonData.ApplicationFolderPath + "\\tmpwav");
        commonData.CreateFolder(commonData.ApplicationFolderPath + "\\cachewav");
        commonData.CreateFolder(commonData.ApplicationFolderPath + "\\errorconversion");
 }