public void FireEvent(string eventName) { CNamedEvent event2 = this.findEvent(eventName); if (event2 == null) { int contextId = this.GetContextId(); event2 = findNamedEventTemplate(this.GetDescriptor().ms_methods, eventName, contextId); } if (event2 != null) { event2.SetFired(this, true); } }
public void FireEvent(string eventName) { CNamedEvent cNamedEvent = this.findEvent(eventName); if (cNamedEvent == null) { int contextId = this.GetContextId(); Agent.CTagObjectDescriptor descriptor = this.GetDescriptor(); cNamedEvent = Agent.findNamedEventTemplate(descriptor.ms_methods, eventName, contextId); } if (cNamedEvent != null) { cNamedEvent.SetFired(this, true); } }
public void FireEvent <ParamType1, ParamType2, ParamType3>(string eventName, ParamType1 param1, ParamType2 param2, ParamType3 param3) { CNamedEvent event2 = this.findEvent(eventName); if (event2 == null) { int contextId = this.GetContextId(); event2 = findNamedEventTemplate(this.GetDescriptor().ms_methods, eventName, contextId); } if (event2 != null) { event2.SetParam <ParamType1, ParamType2, ParamType3>(this, param1, param2, param3); event2.SetFired(this, true); } }
public void FireEvent <ParamType1, ParamType2, ParamType3>(string eventName, ParamType1 param1, ParamType2 param2, ParamType3 param3) { CNamedEvent cNamedEvent = this.findEvent(eventName); if (cNamedEvent == null) { int contextId = this.GetContextId(); Agent.CTagObjectDescriptor descriptor = this.GetDescriptor(); cNamedEvent = Agent.findNamedEventTemplate(descriptor.ms_methods, eventName, contextId); } if (cNamedEvent != null) { cNamedEvent.SetParam <ParamType1, ParamType2, ParamType3>(this, param1, param2, param3); cNamedEvent.SetFired(this, true); } }
public void ResetEvent(string eventName) { CStringID key = new CStringID(eventName); if (this.EventInfos.ContainsKey(key)) { this.EventInfos[key].SetFired(this, false); } else { int contextId = this.GetContextId(); CNamedEvent event3 = findNamedEventTemplate(this.GetDescriptor().ms_methods, eventName, contextId); if (event3 != null) { event3.SetFired(this, false); } } }
public void ResetEvent(string eventName) { CStringID key = new CStringID(eventName); if (this.EventInfos.ContainsKey(key)) { CNamedEvent cNamedEvent = this.EventInfos[key]; cNamedEvent.SetFired(this, false); return; } int contextId = this.GetContextId(); Agent.CTagObjectDescriptor descriptor = this.GetDescriptor(); CNamedEvent cNamedEvent2 = Agent.findNamedEventTemplate(descriptor.ms_methods, eventName, contextId); if (cNamedEvent2 != null) { cNamedEvent2.SetFired(this, false); } }