//public static CassetteInfo LoadCassette(string cassetteFolder) { return LoadCassette(cassetteFolder, true); } public static CassetteInfo LoadCassette(string cassetteFolder, bool loaddata, bool iseditable) { //var cassetteFolder = cassettePath.Value; //if (!Directory.Exists(cassetteFolder) || (!File.Exists(cassetteFolder + "cassette.finfo"))) return null; var cassette = new Cassette(cassetteFolder, loaddata); List <RDFDocumentInfo> di_list = null; if (loaddata) { di_list = new List <RDFDocumentInfo>(); var dd = cassette.DataDocuments().ToList(); foreach (var xDoc in dd) { di_list.Add( new RDFDocumentInfo(xDoc, cassetteFolder)); } } var cassetteInfo = new CassetteInfo { fullName = "iiss://" + cassette.Name + "@iis.nsk.su", cassette = cassette, url = cassette.Dir.FullName + '/', docsInfo = di_list, loaddata = loaddata, iseditable = iseditable, owner = cassette.Owner }; if (loaddata) { cassetteInfo.docsInfo.Add(new RDFDocumentInfo(cassette, true)); } return(cassetteInfo); }