protected virtual void Dispose(bool disposing) { if (disposing) { ExportStyleManager.DisposeInstance(fileName, stream); } }
private static ExportStyleManager GetStreamInstance(Stream stream) { ExportStyleManager result = (ExportStyleManager)instances2[stream]; if (result == null) { result = new ExportStyleManager("", stream); instances2.Add(stream, result); } return(result); }
private static ExportStyleManager GetFileInstance(string fileName) { ExportStyleManager result = (ExportStyleManager)instances[fileName]; if (result == null) { result = new ExportStyleManager(fileName, null); instances.Add(fileName, result); } return(result); }
public ExportDefaultProvider(Stream stream) : base(stream) { styleManager = ExportStyleManager.GetInstance("", stream); }
public ExportDefaultProvider(string fileName) : base(fileName) { styleManager = ExportStyleManager.GetInstance(fileName, null); }