private void RefreshSaveButtonStatus() { _SaveButtonVisible = _valueManager.IsDirty; if (this.SaveButtonVisibleChanged != null) { SaveButtonVisibleChanged.Invoke(this, new EventArgs()); } }
protected void RaiseEvent() { if (_ValueManager.IsDirty != SaveButtonVisible) { SaveButtonVisible = _ValueManager.IsDirty; CancelButtonVisible = _ValueManager.IsDirty; if (this.SaveButtonVisibleChanged != null) { SaveButtonVisibleChanged.Invoke(this, new EventArgs()); } if (this.CancelButtonVisibleChanged != null) { CancelButtonVisibleChanged.Invoke(this, new EventArgs()); } } }