public void Open(bool readOnly) { lock (objectLock) { file = new LocalFile(FilePath, readOnly); IsOpen = true; IsReadOnly = readOnly; } }