Bug in XIDE (event insert with delegate inside class)
Posted: Thu Mar 15, 2018 9:10 am
Hi Chris,
When you now change something in the painter and save you get this code:
As you can see the event handler implemented after is ignored and a new one is inserted. Also is inserted.
When I put the outside the everything is ok.
Attached a simple sample.
Regards,
Stefan
Code: Select all
....
METHOD OKButtonClick(sender AS OBJECT , e AS System.EventArgs) AS VOID
SELF:Close()
RETURN
DELEGATE PropertyChangedDelegate(o AS OBJECT, e AS System.ComponentModel.PropertyChangedEventArgs) AS VOID
METHOD btnTestClick(sender AS System.Object , e AS System.EventArgs) AS VOID
RETURN
END CLASS
Code: Select all
METHOD OKButtonClick(sender AS OBJECT , e AS System.EventArgs) AS VOID
SELF:Close()
RETURN
METHOD btnTestClick(sender AS System.Object , e AS System.EventArgs) AS VOID
RETURN
END CLASS
DELEGATE PropertyChangedDelegate(o AS OBJECT, e AS System.ComponentModel.PropertyChangedEventArgs) AS VOID
METHOD btnTestClick(sender AS System.Object , e AS System.EventArgs) AS VOID
RETURN
END CLASS
Code: Select all
DELEGATE
Code: Select all
END CLASS
When I put the
Code: Select all
DELEGATE
Code: Select all
CLASS
Attached a simple sample.
Regards,
Stefan