public static void Start(string path, string template_name, string template_text) { Stop(); finder = new Finder(path, template_name, template_text); if (thread == null) { thread = new Thread(finder.Start); thread.Start(); XMLWorker.Write(path, template_name, template_text); timer.Start(); } }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Program.Stop(); XMLWorker.Write(start_directory.Text, template_name.Text, template_text.Text); }