コード例 #1
0
ファイル: frmMain.cs プロジェクト: CedartownOnline/DirToJSON
 private void btnProcess_Click(object sender, EventArgs e)
 {
     Cursor.Current = Cursors.WaitCursor;
     try
     {
         string fullPath = Path.GetFullPath(txtPath.Text);
         Directories d = new Directories(fullPath, txtFilters.Text, rdbSuppressEmpty.Checked, rdbWriteChildren.Checked );
         txtJSON.Text = d.GetJsonPretty();
         File.WriteAllText(Path.Combine(fullPath, "directory.json"), d.GetJson());
     }
     finally
     {
         Cursor.Current = Cursors.Default;
     }
 }