Hook Request - Signals

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
jsalmon
Posts: 1551
Joined: Tue Nov 30, 2010 12:33 pm
Contact:

Hook Request - Signals

Post by jsalmon » Sat Jun 07, 2014 7:55 pm

Code: Select all

Plugins.HookAddCode(this,"FormOpenDental.ProcessSignals_end",sigList);
Allen, since I need access to sigList, it can't be at the absolute "end" of the method. It has to be at the end of the try block. I don't think the name needs to be renamed because who will ever care about failed signal processing? I'm open to suggestions if you disagree.

Exact hook placement:

Code: Select all

...
try {
	...
	newThread.Start(sigListButs);
	Plugins.HookAddCode(this,"FormOpenDental.ProcessSignals_end",sigList);
}
catch {
	signalLastRefreshed=DateTime.Now;
}
The best thing about a boolean is even if you are wrong, you are only off by a bit.

Jason Salmon
Open Dental Software
http://www.opendental.com

Post Reply