public void EditFile() { RequestDisplay.DisplayRequestForFilePath(); FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole); if (File.Exists(FilePath)) { LaunchingNotebook(); } else { MessageDisplay.DisplayOnlyMessageAbout_FileDoesNotExist(); } }
private void FileEncoding() { RequestDisplay.DisplayRequestForFilePath(); FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole); if (File.Exists(FilePath)) { FileContentEncoding(); } else { MessageDisplay.DisplayOnlyMessageAbout_FileDoesNotExist(); } }
public void ReadEncryptedFile() { RequestDisplay.DisplayRequestForFilePath(); FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole); if (File.Exists(FilePath)) { ReadEncryptedContent(); } else { MessageDisplay.DisplayOnlyMessageAbout_FileDoesNotExist(); } }
public void FileCreation() { RequestDisplay.DisplayRequestForFilePath(GetMessageToUser()); FilePath = GetterFilePath.GetFilePathFromUser(DummyConsole); if (!File.Exists(FilePath)) { TryToCreateFile(); } else { MessageDisplay.DisplayOnlyTheMessage("Ten plik już istnieje " + "(w danej ścieżce)!"); } }