Vote count:
0
I am attempting to capture which Event was fired. I have two events that point to the same function, CurrentLoan_LogEntryEvent
. Inside CurrentLoan_LogEntryEvent
, how do I determine which Event was actually fired: LogEntryAdded
or LogEntryChange
.
Your help is appreciated. Below you'll find sample of my code how I have it now. Let me know if you have any questions about my code.
CurrentLoan
is a Loan
object, which has two events.
public MyApplication()
{
ThirdPartyDLL.LoanOpened += new EventHandler(CurrentLoanOpened);
}
private void CurrentLoanOpened(object sender, EventArgs e)
{
ThirdPartyDLL.CurrentLoan.LogEntryAdded += CurrentLoan_LogEntryEvent;
ThirdPartyDLL.CurrentLoan.LogEntryChange += CurrentLoan_LogEntryEvent;
}
private void CurrentLoan_LogEntryEvent(object sender, LogEntryEventArgs e)
{
// When LogEntry was Added or Changed.
// How do I determine if LogEntryAdded or LogEntryChange was fired?
}
asked 1 min ago
Find which Event was Fired
Aucun commentaire:
Enregistrer un commentaire