public static void CheckJobName(string RenderFile) { if (File.Exists(RenderFile)) { string SearchDirectory = RenderTask.GetDirectoryPathFromFile(RenderFile); Tools.ClearCurrentConsoleLine(); Console.Write("Попытка найти новую джобу: " + SearchDirectory); if (Program.Jobs.Find(x => x.RenderPath == SearchDirectory) == null) { Job Joba = new Job(RenderTask.GetDirectoryPathFromFile(RenderFile), Program.Jobs.Count); string str = Path.GetFileNameWithoutExtension(RenderFile); str = str.Substring(0, str.Length - 4); Joba.RenderNameMask = str; Program.Jobs.Add(Joba); Joba.ExistingFiles = Program.SearchFile(Joba.RenderPath, "*" + Joba.RenderNameMask + "*"); TryParseOtherFrames(Joba); CheckSequence(Joba); GetChannels(Joba); GetDirectorySize(Joba); GetFileFormat(Joba); SaveJobJson(Joba); } } }