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"); }
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"); }