Пример #1
0
 void Initialize()
 {
     m_duplexClient = ProxyClient.GetDuplexServiceProxyClient();
     m_duplexClient.SendToServiceCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(m_duplexClient_SendToServiceCompleted);
     m_duplexClient.SendToClientReceived   += new EventHandler <SendToClientReceivedEventArgs>(m_duplexClient_SendToClientReceived);
     m_numberOfMessagesOnMonitor            = IsolatedStorageManager.LoadFromIsolatedStorage("NumberOfMessagesOnMonitor") == null ? 50 : Convert.ToInt32(IsolatedStorageManager.LoadFromIsolatedStorage("NumberOfMessagesOnMonitor"));
 }
Пример #2
0
        void Initialize()
        {
            m_duplexClient = ProxyClient.GetDuplexServiceProxyClient();
            m_duplexClient.SendToServiceCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(duplexClient_SendToServiceCompleted);
            m_duplexClient.SendToClientReceived   += new EventHandler <SendToClientReceivedEventArgs>(duplexClient_SendToClientReceived);

            m_client = ProxyClient.GetPhasorDataServiceProxyClient();
            m_client.GetDevicesCompleted += new EventHandler <GetDevicesCompletedEventArgs>(m_client_GetDevicesCompleted);
            m_client.GetFilteredMeasurementsByDeviceCompleted += new EventHandler <GetFilteredMeasurementsByDeviceCompletedEventArgs>(m_client_GetFilteredMeasurementsByDeviceCompleted);
        }
Пример #3
0
        public DeviceMeasurements()
        {
            InitializeComponent();
            m_client = ProxyClient.GetPhasorDataServiceProxyClient();
            m_client.GetDeviceMeasurementDataCompleted += new EventHandler <GetDeviceMeasurementDataCompletedEventArgs>(m_client_GetDeviceMeasurementDataCompleted);
            this.Loaded += new RoutedEventHandler(DeviceMeasurements_Loaded);

            m_duplexClient = ProxyClient.GetDuplexServiceProxyClient();
            m_duplexClient.SendToServiceCompleted += new EventHandler <System.ComponentModel.AsyncCompletedEventArgs>(m_duplexClient_SendToServiceCompleted);
            m_duplexClient.SendToClientReceived   += new EventHandler <SendToClientReceivedEventArgs>(m_duplexClient_SendToClientReceived);
        }