public void OpenFile() { if (ImportSemaphore.Wait(0) == false) { return; } string filePath = Importer.OpenFileDialog(); if (filePath != null) { // TODO: // Importer.Create(filePath); } ImportSemaphore.Release(); }
private void OpenFile() { if (!ValidateToS()) { return; } if (ImportSemaphore.Wait(0) == false) { return; } string filePath = OpenFileDialog(); if (filePath != null) { ImportEpub(filePath); } ImportSemaphore.Release(); }