From af8223bbd0090f2364e1e6f1989a281598f874e3 Mon Sep 17 00:00:00 2001 From: soukoku Date: Fri, 20 Jun 2014 06:33:15 -0400 Subject: [PATCH] removed property changed from twainsource. --- NTwain/TwainSource.cs | 72 +++++++++++++++++++++---------------------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/NTwain/TwainSource.cs b/NTwain/TwainSource.cs index 6501c21..b9b2736 100644 --- a/NTwain/TwainSource.cs +++ b/NTwain/TwainSource.cs @@ -179,7 +179,7 @@ namespace NTwain private set { _supportedCaps = value; - OnPropertyChanged("SupportedCaps"); + //OnPropertyChanged("SupportedCaps"); } } @@ -219,44 +219,44 @@ namespace NTwain #endregion - #region INotifyPropertyChanged Members + //#region INotifyPropertyChanged Members - /// - /// Occurs when a property value changes. - /// - public event PropertyChangedEventHandler PropertyChanged; + ///// + ///// Occurs when a property value changes. + ///// + //public event PropertyChangedEventHandler PropertyChanged; - /// - /// Raises the event. - /// - /// Name of the property. - protected void OnPropertyChanged(string propertyName) - { - var syncer = _session.SynchronizationContext; - if (syncer == null) - { - try - { - var hand = PropertyChanged; - if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); } - } - catch { } - } - else - { - syncer.Post(o => - { - try - { - var hand = PropertyChanged; - if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); } - } - catch { } - }, null); - } - } + ///// + ///// Raises the event. + ///// + ///// Name of the property. + //protected void OnPropertyChanged(string propertyName) + //{ + // var syncer = _session.SynchronizationContext; + // if (syncer == null) + // { + // try + // { + // var hand = PropertyChanged; + // if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); } + // } + // catch { } + // } + // else + // { + // syncer.Post(o => + // { + // try + // { + // var hand = PropertyChanged; + // if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); } + // } + // catch { } + // }, null); + // } + //} - #endregion + //#endregion #region cameras