예제 #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     FolderBrowserDialog temp2 = new FolderBrowserDialog();
     if (temp2.ShowDialog() == DialogResult.OK)
     {
         Environment.CurrentDirectory = temp2.SelectedPath;
     }
     else
         return;
     //Environment.CurrentDirectory = "";
     SaveThread temp = new SaveThread(Convert.ToInt32(textBox1.Text));
     Thread lol = new Thread(new ThreadStart(temp.RunMainFunction));
     lol.Start();
     this.Close();
 }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog temp2 = new FolderBrowserDialog();

            if (temp2.ShowDialog() == DialogResult.OK)
            {
                Environment.CurrentDirectory = temp2.SelectedPath;
            }
            else
            {
                return;
            }
            //Environment.CurrentDirectory = "";
            SaveThread temp = new SaveThread(Convert.ToInt32(textBox1.Text));
            Thread     lol  = new Thread(new ThreadStart(temp.RunMainFunction));

            lol.Start();
            this.Close();
        }