i have addon, which I intantiate in indicator, like:
protected override void OnStateChange(){ if(State==State.Configure){ MyAddon.init(this); } }
I tried this but cant succeed:
private void init(IndicatorBase parentIndi){ myMethod += parentIndi.OnStateChange; //if i use , IndicatorBase.OnStateChange it says "is inaccessible due its protection level" } private void myMethod(){ // do smth }
Comment