Commit d8e49595 authored by Nicolas Jager's avatar Nicolas Jager

fix : replace PropertyChanged for NotifyPropertyChanged

- PropertyChanged can raise the exception : disconnected from his client

Change-Id: I9a72ca4ddff4bdc91194c46d8bcd52c71ac35e1e
Tuleap: #1245
parent 72b42926
......@@ -39,7 +39,7 @@ public:
}
void set(String^ value) {
name__ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("name_"));
NotifyPropertyChanged("name_");
}
}
property String^ ringID_;
......
......@@ -37,7 +37,7 @@ public:
property bool _isSelected {
void set(bool value) {
isSelected_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_isSelected"));
NotifyPropertyChanged("_isSelected");
}
bool get() {
return isSelected_;
......
......@@ -63,7 +63,7 @@ Contact::Contact(String^ name,
if(unreadMessages_) {
notificationNewMessage = Windows::UI::Xaml::Visibility::Visible;
PropertyChanged(this, ref new PropertyChangedEventArgs("unreadMessages"));
NotifyPropertyChanged("unreadMessages");
}
}
......
......@@ -61,7 +61,7 @@ public:
void set(Visibility visibility)
{
notificationNewMessage_ = visibility;
PropertyChanged(this, ref new PropertyChangedEventArgs("notificationNewMessage"));
NotifyPropertyChanged("notificationNewMessage");
}
}
property uint32 _unreadMessages
......@@ -73,7 +73,7 @@ public:
void set(uint32 value)
{
unreadMessages_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_unreadMessages"));
NotifyPropertyChanged("_unreadMessages");
}
}
property Windows::UI::Xaml::GridLength _contactBarHeight
......@@ -85,7 +85,7 @@ public:
void set(Windows::UI::Xaml::GridLength value)
{
contactBarHeight_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_contactBarHeight"));
NotifyPropertyChanged("_contactBarHeight");
}
}
......
......@@ -53,7 +53,7 @@ public:
void set(Visibility value)
{
hovered_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_hovered"));
NotifyPropertyChanged("_hovered");
}
}
......@@ -71,7 +71,7 @@ public:
}
void set(CallStatus value) {
callStatus_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_callStatus"));
NotifyPropertyChanged("_callStatus");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment