public void ShowMessagePanel(bool flag) { EventHandler handler = ShowPanelEvent; if (handler != null) { UpdatePropertyEventArgs args = new UpdatePropertyEventArgs() { Value = flag, PropertyName = "ShowMessagePanel" }; handler(this, args); } }
public void OnUpdateDocTable(object value, [CallerMemberName] string property = null) { Log.TraceWrite(CallerInfo.Create(), "Property: {0}", property); EventHandler handler = UpdateDocTableEvent; if (handler != null) { UpdatePropertyEventArgs args = new UpdatePropertyEventArgs() { Value = value, PropertyName = property }; ChangePending = true; handler(this, args); } }