public override void onCaseAdded(l3.cargo.corba.XCase c) { if (m_WSServer != null) { m_WSServer.AddToCaseList(c); } }
private string CreateCTICase(string ctiFilename) { Random random = new Random(); string[] directories = Directory.GetDirectories(m_CTITemplateDir); string templateDir = directories[random.Next(directories.Length)]; string caseId = CreateNewCaseId(); DirectoryInfo source = new DirectoryInfo(templateDir); DirectoryInfo destination = new DirectoryInfo(m_CTIDirectory + caseId); CopyCaseDirectory(source, destination); ModifyCase(caseId, new FileInfo(Path.Combine(destination.FullName, "case.xml")), ctiFilename); m_WSServer.AddToCaseList(caseId, destination.FullName, DateTime.Now.ToString(), "Analyst", true);// create a new case in the case list return(caseId); }