mirror of
https://github.com/soukoku/ntwain.git
synced 2025-11-08 10:34:47 +08:00
removed property changed from twainsource.
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user