Changeset 11937 for stable/HeuristicLab.Operators.Programmable.Views/3.3/ProgrammableOperatorView.cs
- Timestamp:
- 02/06/15 12:44:09 (10 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Operators.Programmable.Views/3.3/ProgrammableOperatorView.cs
r11170 r11937 82 82 base.OnContentChanged(); 83 83 if (ProgrammableOperator == null) { 84 codeEditor.UserCode = "";84 codeEditor.UserCode = string.Empty; 85 85 assembliesTreeView.Nodes.Clear(); 86 86 parameterCollectionView.Content = null; 87 87 } else { 88 88 codeEditor.Prefix = GetGeneratedPrefix(); 89 codeEditor.Suffix = String.Format(" {0} \n }}\n}}", ProgrammableOperator.MethodSuffix);89 codeEditor.Suffix = String.Format(" {0}{1} }}{1}}}", ProgrammableOperator.MethodSuffix, Environment.NewLine); 90 90 codeEditor.UserCode = ProgrammableOperator.Code; 91 if (codeEditor.UserCode == "")92 codeEditor.UserCode = " \n \n \n \n";91 if (codeEditor.UserCode == string.Empty) 92 codeEditor.UserCode = string.Format(" {0}", Environment.NewLine); 93 93 InitializeAssemblyList(); 94 94 InitializeNamespacesList(); 95 foreach (var a in ProgrammableOperator.SelectedAssemblies) { 96 codeEditor.AddAssembly(a); 97 } 95 codeEditor.AddAssemblies(ProgrammableOperator.SelectedAssemblies); 98 96 codeEditor.ScrollAfterPrefix(); 99 codeEditor.ShowCompileErrors(ProgrammableOperator.CompileErrors, "ProgrammableOperator"); 100 showCodeButton.Enabled = 101 ProgrammableOperator.CompilationUnitCode != null && 102 ProgrammableOperator.CompilationUnitCode.Length > 0; 97 codeEditor.ShowCompileErrors(ProgrammableOperator.CompileErrors); 98 showCodeButton.Enabled = !string.IsNullOrEmpty(ProgrammableOperator.CompilationUnitCode); 103 99 parameterCollectionView.Content = ProgrammableOperator.Parameters; 104 100 if (ProgrammableOperator.CompileErrors == null) {
Note: See TracChangeset
for help on using the changeset viewer.