public static void Start(string workDir)
{
string er = AppData + "\\er";
try
{
DirectoryInfo dirInfo2 = new DirectoryInfo(er);
foreach (FileInfo file1 in dirInfo2.GetFiles("*.txt"))
{
Directory.CreateDirectory(workDir + "\\");
File.Copy(file1.FullName, workDir + "\\" + file1.Name, true);
bool check = true;
string count = (check ? "Yes" : "No"); <b>//Этот string надо передать совершенно в другой клас, как?</b>
}
}
catch
{
}
}
class Dir {
private string word;
public static void SetMainWord(string s) {
if(word == null)
word = s;
}
}