Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/23/14 13:35:06 (9 years ago)
Author:
jkarder
Message:

#2262:

  • fixed SetEnabledStateOfControls in VariableStoreView
  • the code template for a CSharpScript is now read from an embedded resource
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scripting/3.3/Script.cs

    r11657 r11721  
    157157      if (handler != null) handler(this, EventArgs.Empty);
    158158    }
     159
     160    #region Helpers
     161    protected virtual string ReadCodeTemplate(string templateName) {
     162      using (var stream = Assembly.GetAssembly(this.GetType()).GetManifestResourceStream(templateName))
     163      using (var reader = new StreamReader(stream)) {
     164        return reader.ReadToEnd();
     165      }
     166    }
     167    #endregion
    159168  }
    160169}
Note: See TracChangeset for help on using the changeset viewer.