patch pour amelioration des etats

Change-Id: I5fd57088cc6a687edbaf80d556d275b7ea1040a7
Tuleap: #1205
diff --git a/SmartPanelItem.cpp b/SmartPanelItem.cpp
index 35c77de..ebf3eee 100644
--- a/SmartPanelItem.cpp
+++ b/SmartPanelItem.cpp
@@ -31,10 +31,9 @@
 

 SmartPanelItem::SmartPanelItem()

 {

-    /* create an empty call to avoid the call bar */

-    _call = ref new Call("", "", "");

     _callId = "";

 

+    RingD::instance->callPlaced += ref new RingClientUWP::CallPlaced(this, &RingClientUWP::Controls::SmartPanelItem::OncallPlaced);

 }

 

 void

@@ -47,4 +46,11 @@
     {

         PropertyChanged(this, ref new PropertyChangedEventArgs(propertyName));

     }));

-}
\ No newline at end of file
+}

+

+void RingClientUWP::Controls::SmartPanelItem::OncallPlaced(Platform::String ^callId)

+{

+    if (_callId == callId) {

+        _callStatus = CallStatus::SEARCHING;

+    }

+}