diff --git a/Account.h b/Account.h index e8d2dec84345801f1cf79a588a8a798013a99dca..61bd0e53eba1f7222e888168277060be2d88584d 100644 --- a/Account.h +++ b/Account.h @@ -39,7 +39,7 @@ public: } void set(String^ value) { name__ = value; - PropertyChanged(this, ref new PropertyChangedEventArgs("name_")); + NotifyPropertyChanged("name_"); } } property String^ ringID_; diff --git a/AccountListItem.h b/AccountListItem.h index 4bbb2c0788826e81c9fe586dfc23bb7007e3e646..022c95372f0549539556cfd6463c07dc4981d032 100644 --- a/AccountListItem.h +++ b/AccountListItem.h @@ -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_; diff --git a/Contact.cpp b/Contact.cpp index 2d94ec1f9497862a388b1fa7c47bb86eb77b137e..5b06a12493637ac63c905ff8d7f6f48f48372a59 100644 --- a/Contact.cpp +++ b/Contact.cpp @@ -63,7 +63,7 @@ Contact::Contact(String^ name, if(unreadMessages_) { notificationNewMessage = Windows::UI::Xaml::Visibility::Visible; - PropertyChanged(this, ref new PropertyChangedEventArgs("unreadMessages")); + NotifyPropertyChanged("unreadMessages"); } } diff --git a/Contact.h b/Contact.h index d2cdf287752b8c3d96c93cf9efc113974c20285a..524697ccfef614f14c1493b5fa84b507bc2daece 100644 --- a/Contact.h +++ b/Contact.h @@ -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"); } } diff --git a/SmartPanelItem.h b/SmartPanelItem.h index 88cb4869f835cb63939b82f5a6689e02ac5c4acd..ded98eaa6002f15499ef4b061478e39e090bd46d 100644 --- a/SmartPanelItem.h +++ b/SmartPanelItem.h @@ -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"); } }