private void ExecuteWrite(bool subscribe) { if (FileheHandler.Write(Code, Path, subscribe)) { Console.WriteLine($"{NameFile} criado com sucesso!"); } }
public void Execute(string code, string path, string nameFile, bool subscribe) { Code = code; Path = path; NameFile = nameFile; FileheHandler.SetArchive($"{path}\\{nameFile}"); ExecuteWrite(subscribe); }