private void create_project_button_Click(object sender, RoutedEventArgs e) { if (!Directory.Exists(dstPath + @"\" + project_name_textbox.Text)) { dstPath += @"\" + project_name_textbox.Text; isLandscape = (bool)radioLandscape.IsChecked; isDemoProject = (bool)radioApiDemo.IsChecked; thread = new BackgroundWorker(); thread.DoWork += new DoWorkEventHandler(thread_DoWork); thread.RunWorkerCompleted += new RunWorkerCompletedEventHandler(thread_RunWorkerCompleted); thread.RunWorkerAsync(); pd = new ProgressDialog(); pd.Show(); } else { System.Windows.MessageBox.Show("프로젝트 폴더가 이미 존재합니다!"); } }