Hello,
I have a listener class which deals with events .
There I have a function:
private void tChart1_Click(object
sender,System.Windows.Forms.MouseEventArgs e)
{
System.Console.WriteLine("aaa");
System.Console.WriteLine(this.line3.CalcXPos(1));
}
This function suppose to be activated by:
this.tChart1.ClickSeries+=new
Steema.TeeChart.TChart.SeriesEventHandler(tChart1_ Click);
But I ger an error:
CS0123: Method 'WindowsApplication2.EventListener.tChart1_Click(o bject,
System.Windows.Forms.MouseEventArgs)' does not match delegate 'void
Steema.TeeChart.TChart.SeriesEventHandler(object,
Steema.TeeChart.Styles.Series, int, System.Windows.Forms.MouseEventArgs)'
The delagate I have is:
public delegate void ChangedEventHandler(object sender, EventArgs e);
Why do I get the error?
Thanks a lot!