I have a form which contains an object :
I also have a timer_tick event :Code:public IDataItem _objCurrent { get { return objCurrent; } set { objCurrent = value; } }
The cut down method in my clsAPI looks like this :Code:private void timer1_Tick(object sender, EventArgs e) { clsAPI lclsAPI = new clsAPI(); lclsAPI.apiGetCurrent(this.objCurrent); }
Basically if the objects do NOT equal eachother I want to raise an event in the form to do something but the question is how.Code:public AdapterTest.IDataItem apiGetCurrent(IDataItem current) { if (dItem == current) { break; } else { //RAISE EVENT IN FORM BUT HOW ?; } }



Reply With Quote
