示例#1
0
 void client_GetConcentratorDeviceCompleted(object sender, GetConcentratorDeviceCompletedEventArgs e)
 {
     if (e.Error == null && e.Result != null)
     {
         Device device = new Device();
         device = e.Result;
         ToolTip toolTip = new ToolTip();
         toolTip.DataContext = device;
         toolTip.Template    = Application.Current.Resources["PdcInfoToolTipTemplate"] as ControlTemplate;
         ToolTipService.SetToolTip(ButtonView, toolTip);
     }
 }
 void client_GetConcentratorDeviceCompleted(object sender, GetConcentratorDeviceCompletedEventArgs e)
 {
     if (e.Error == null && e.Result != null)
     {
         Device device = new Device();
         device = e.Result;
         ToolTip toolTip = new ToolTip();
         toolTip.DataContext = device;
         toolTip.Template = Application.Current.Resources["PdcInfoToolTipTemplate"] as ControlTemplate;
         ToolTipService.SetToolTip(ButtonView, toolTip);
     }
 }