public void RaiseTestViewModelEvent() { TestViewModelEventHandler handler = TestViewModelEvent; if (handler != null) { handler(this, new TestViewModelEventArgs()); } }
public int GetTestViewModelEventInvocationCount() { TestViewModelEventHandler handler = TestViewModelEvent; return(handler != null?handler.GetInvocationList().Length : 0); }