コード例 #1
0
 private void RefreshSaveButtonStatus()
 {
     _SaveButtonVisible = _valueManager.IsDirty;
     if (this.SaveButtonVisibleChanged != null)
     {
         SaveButtonVisibleChanged.Invoke(this, new EventArgs());
     }
 }
コード例 #2
0
 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());
         }
     }
 }