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: ...@@ -39,7 +39,7 @@ public:
} }
void set(String^ value) { void set(String^ value) {
name__ = value; name__ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("name_")); NotifyPropertyChanged("name_");
} }
} }
property String^ ringID_; property String^ ringID_;
......
...@@ -37,7 +37,7 @@ public: ...@@ -37,7 +37,7 @@ public:
property bool _isSelected { property bool _isSelected {
void set(bool value) { void set(bool value) {
isSelected_ = value; isSelected_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_isSelected")); NotifyPropertyChanged("_isSelected");
} }
bool get() { bool get() {
return isSelected_; return isSelected_;
......
...@@ -63,7 +63,7 @@ Contact::Contact(String^ name, ...@@ -63,7 +63,7 @@ Contact::Contact(String^ name,
if(unreadMessages_) { if(unreadMessages_) {
notificationNewMessage = Windows::UI::Xaml::Visibility::Visible; notificationNewMessage = Windows::UI::Xaml::Visibility::Visible;
PropertyChanged(this, ref new PropertyChangedEventArgs("unreadMessages")); NotifyPropertyChanged("unreadMessages");
} }
} }
......
...@@ -61,7 +61,7 @@ public: ...@@ -61,7 +61,7 @@ public:
void set(Visibility visibility) void set(Visibility visibility)
{ {
notificationNewMessage_ = visibility; notificationNewMessage_ = visibility;
PropertyChanged(this, ref new PropertyChangedEventArgs("notificationNewMessage")); NotifyPropertyChanged("notificationNewMessage");
} }
} }
property uint32 _unreadMessages property uint32 _unreadMessages
...@@ -73,7 +73,7 @@ public: ...@@ -73,7 +73,7 @@ public:
void set(uint32 value) void set(uint32 value)
{ {
unreadMessages_ = value; unreadMessages_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_unreadMessages")); NotifyPropertyChanged("_unreadMessages");
} }
} }
property Windows::UI::Xaml::GridLength _contactBarHeight property Windows::UI::Xaml::GridLength _contactBarHeight
...@@ -85,7 +85,7 @@ public: ...@@ -85,7 +85,7 @@ public:
void set(Windows::UI::Xaml::GridLength value) void set(Windows::UI::Xaml::GridLength value)
{ {
contactBarHeight_ = value; contactBarHeight_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_contactBarHeight")); NotifyPropertyChanged("_contactBarHeight");
} }
} }
......
...@@ -53,7 +53,7 @@ public: ...@@ -53,7 +53,7 @@ public:
void set(Visibility value) void set(Visibility value)
{ {
hovered_ = value; hovered_ = value;
PropertyChanged(this, ref new PropertyChangedEventArgs("_hovered")); NotifyPropertyChanged("_hovered");
} }
} }
...@@ -71,7 +71,7 @@ public: ...@@ -71,7 +71,7 @@ public:
} }
void set(CallStatus value) { void set(CallStatus value) {
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