private void buttonSaveAll_Click(object sender, EventArgs e)
        {
            if (folderBrowserDialogSaveObjects.ShowDialog() == DialogResult.OK)
            {
                string saveToPath = folderBrowserDialogSaveObjects.SelectedPath + "\\Exported Debugger Objects";
                Directory.CreateDirectory(saveToPath);

                foreach (var kvp in _dicTexts)
                {
                    string fileName = kvp.Key;
                    string fileText = kvp.Value;
                    string path     = saveToPath + "\\" + fileName + extension;

                    File.WriteAllText(path, fileText);
                }

                FilesCreatedDialog dialog = new FilesCreatedDialog(saveToPath);
                dialog.ShowDialog(this);
            }
        }
Ejemplo n.º 2
0
 public void LoadFilesCreatedDialog()
 {
     const string file = @"C:\Program Files (x86)\IIS Express\AppServer";
     FilesCreatedDialog dialog = new FilesCreatedDialog(file);
     dialog.ShowDialog();
 }
        private void buttonSaveAll_Click(object sender, EventArgs e)
        {
            if (folderBrowserDialogSaveObjects.ShowDialog() == DialogResult.OK)
            {
                string saveToPath = folderBrowserDialogSaveObjects.SelectedPath + "\\Exported Debugger Objects";
                Directory.CreateDirectory(saveToPath);

                foreach (var kvp in _dicTexts)
                {
                    string fileName = kvp.Key;
                    string fileText = kvp.Value;
                    string path = saveToPath + "\\" + fileName + extension;

                    File.WriteAllText(path, fileText);
                }

                FilesCreatedDialog dialog = new FilesCreatedDialog(saveToPath);
                dialog.ShowDialog(this);
            }
        }