
Hi,
in my project, the code fragments don`t work. I have add following code to the header property:
using System;
using Software4You.VAR;
namespace Software4You.VAR {
private class Formula {
private decimal Calculate(RatioClass Ratio, InputClass Input) {
and following code to the footer property:
}
private class RatioClass {
public decimal COMPANYJAHRUMSATZ { get { return 0; } }
public decimal PATENTE { get { return 0; } }
}
private class InputClass {
public decimal KEY1 { get { return 0; } }
public decimal KEY2 { get { return 0; } }
}
}
}
In your example it works fine. But when I create a new project and add this code to the properties, the IntelliSense dont`t work when I use the Function parameter 'Input' and 'Ratio'.
This code I use in the Form_Load event:
DotNetProjectResolver dotNetProjectResolver = new DotNetProjectResolver();
dotNetProjectResolver.AddExternalReferenceForSystemAssembly("System");
dotNetProjectResolver.AddAllAssembliesInAppDomainAsExternalReferences();
CSharpSyntaxLanguage language = new CSharpSyntaxLanguage();
syntaxEditor1.Document.Language = language;
syntaxEditor1.Document.LanguageData = dotNetProjectResolver;
syntaxEditor1.Document.HeaderText = ...
syntaxEditor1.Document.FooterText = ...
syntaxEditor1.Document.Reparse();
What`s wrong? Why works it only with your example?
Regards
Marco
in my project, the code fragments don`t work. I have add following code to the header property:
using System;
using Software4You.VAR;
namespace Software4You.VAR {
private class Formula {
private decimal Calculate(RatioClass Ratio, InputClass Input) {
and following code to the footer property:
}
private class RatioClass {
public decimal COMPANYJAHRUMSATZ { get { return 0; } }
public decimal PATENTE { get { return 0; } }
}
private class InputClass {
public decimal KEY1 { get { return 0; } }
public decimal KEY2 { get { return 0; } }
}
}
}
In your example it works fine. But when I create a new project and add this code to the properties, the IntelliSense dont`t work when I use the Function parameter 'Input' and 'Ratio'.
This code I use in the Form_Load event:
DotNetProjectResolver dotNetProjectResolver = new DotNetProjectResolver();
dotNetProjectResolver.AddExternalReferenceForSystemAssembly("System");
dotNetProjectResolver.AddAllAssembliesInAppDomainAsExternalReferences();
CSharpSyntaxLanguage language = new CSharpSyntaxLanguage();
syntaxEditor1.Document.Language = language;
syntaxEditor1.Document.LanguageData = dotNetProjectResolver;
syntaxEditor1.Document.HeaderText = ...
syntaxEditor1.Document.FooterText = ...
syntaxEditor1.Document.Reparse();
What`s wrong? Why works it only with your example?
Regards
Marco