removed property changed from twainsource.

This commit is contained in:
soukoku
2014-06-20 06:33:15 -04:00
parent 93779f9232
commit af8223bbd0

View File

@@ -179,7 +179,7 @@ namespace NTwain
private set private set
{ {
_supportedCaps = value; _supportedCaps = value;
OnPropertyChanged("SupportedCaps"); //OnPropertyChanged("SupportedCaps");
} }
} }
@@ -219,44 +219,44 @@ namespace NTwain
#endregion #endregion
#region INotifyPropertyChanged Members //#region INotifyPropertyChanged Members
/// <summary> ///// <summary>
/// Occurs when a property value changes. ///// Occurs when a property value changes.
/// </summary> ///// </summary>
public event PropertyChangedEventHandler PropertyChanged; //public event PropertyChangedEventHandler PropertyChanged;
/// <summary> ///// <summary>
/// Raises the <see cref="PropertyChanged"/> event. ///// Raises the <see cref="PropertyChanged"/> event.
/// </summary> ///// </summary>
/// <param name="propertyName">Name of the property.</param> ///// <param name="propertyName">Name of the property.</param>
protected void OnPropertyChanged(string propertyName) //protected void OnPropertyChanged(string propertyName)
{ //{
var syncer = _session.SynchronizationContext; // var syncer = _session.SynchronizationContext;
if (syncer == null) // if (syncer == null)
{ // {
try // try
{ // {
var hand = PropertyChanged; // var hand = PropertyChanged;
if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); } // if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); }
} // }
catch { } // catch { }
} // }
else // else
{ // {
syncer.Post(o => // syncer.Post(o =>
{ // {
try // try
{ // {
var hand = PropertyChanged; // var hand = PropertyChanged;
if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); } // if (hand != null) { hand(this, new PropertyChangedEventArgs(propertyName)); }
} // }
catch { } // catch { }
}, null); // }, null);
} // }
} //}
#endregion //#endregion
#region cameras #region cameras