Example #1
0
 protected void btnSaveSolution_Click(object sender, EventArgs e)
 {
     setCodeRepeatValues();
     Console.WriteLine(codeRepeat.ToJson());
     CodeRepeaterService.SaveCodeRepeat(codeRepeat, this.textBoxSolutionName.Text);
     setSolutionListboxByDir();
 }
        public static void SaveCodeRepeat(CodeRepeat cr, string solutionName)
        {
            var path = Path.Combine(SettingsService.GetSolutionDirectory(), solutionName + SettingsService.SOLUTION_EXT);

            FileService.WriteOutputFile(cr.ToJson().ToString(), path);
        }