I'm getting stuck with implementing the methods of the IOutput interface. According to MSDN, a class that implements an interface, needs to implement all methods from that interface. However, I can't seem to access the PowerLanguage Editor output log to actually implement the interface. So far, I only have empty methods:
Code: Select all
using System;
using System.Drawing;
using System.Linq;
using PowerLanguage.Function;
namespace PowerLanguage.Indicator
{
public class MyTestIndicator : IndicatorObject
{
public MyTestIndicator(object _ctx):base(_ctx){}
protected override void Create() { }
protected override void StartCalc() { }
protected override void CalcBar()
{
InterfaceImplementer myInterface = new InterfaceImplementer();
myInterface.WriteLine("{0} {1}", new[] { "Hello", "world!" });
}
}
public class InterfaceImplementer : IOutput
{
public void Clear()
{
// .. ?
}
public void Write(string format, params object[] args)
{
// .. ?
}
public void WriteLine(string format, params object[] args)
{
// .. ?
}
}
}