Esempio n. 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            FindInfo findInfo = XMLWorker.Read();

            if (findInfo != null)
            {
                start_directory.Text = findInfo.FilePath;
                template_text.Text   = findInfo.Template_text;
                template_name.Text   = findInfo.Template_name;
            }
            btnStop.Enabled = false;
        }
Esempio n. 2
0
 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();
     }
 }
Esempio n. 3
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     Program.Stop();
     XMLWorker.Write(start_directory.Text, template_name.Text, template_text.Text);
 }