Пример #1
0
 private void client_Disconnected(object sender, DdeDisconnectedEventArgs args)
 {
     displayTextBox.Text = 
         "OnDisconnected: " +
         "IsServerInitiated=" + args.IsServerInitiated.ToString() + " " +
         "IsDisposed=" + args.IsDisposed.ToString();
 }
Пример #2
0
 private void OnDisconnectedPrice(object sender, DdeDisconnectedEventArgs args)
 {
     log.WriteLine(getTimeStamp() + " " +
                   "OnDisconnected: " +
                   "IsServerInitiated=" + args.IsServerInitiated.ToString() + " " +
                   "IsDisposed=" + args.IsDisposed.ToString());
 }
Пример #3
0
 private static void OnDisconnected(object sender, DdeDisconnectedEventArgs args)
 {
     Console.WriteLine(
         "OnDisconnected: " +
         "IsServerInitiated=" + args.IsServerInitiated.ToString() + " " +
         "IsDisposed=" + args.IsDisposed.ToString());
 }
Пример #4
0
 private void OnDisconnected(object sender, DdeDisconnectedEventArgs args)
 {
     Log(
         "OnDisconnected: " +
         "IsServerInitiated=" + args.IsServerInitiated.ToString() + " " +
         "IsDisposed=" + args.IsDisposed.ToString());
     TheContainer.TheDdeClient = null;
 }
Пример #5
0
 private void client_Disconnected(object sender, DdeDisconnectedEventArgs args)
 {
     string msg =
         "OnDisconnected: " +
         "IsServerInitiated=" + args.IsServerInitiated.ToString() + " " +
         "IsDisposed=" + args.IsDisposed.ToString();
     //可實做將該訊息顯示在 StatusBar 上.
 }
Пример #6
0
 private void OnDisconnected(object sender, DdeDisconnectedEventArgs e)
 {
     Console.WriteLine("DDE: Ondisconnected!");
     if (listener != null)
     {
         listener.stateChanged("Verbindung verloren!");
         listener.lostConnection("");
     }
 }
Пример #7
0
 void c_Disconnected(object sender, DdeDisconnectedEventArgs e)
 {
     lock (_syncLock)
     {
         foreach (TOSDataPoint p in _dataPoints.Values)
         {
             p.OnDisconnected();
         }
         OnDisconnection(this);
         c.Dispose();
     }
 }
Пример #8
0
 public void Test_Disconnected_Variation_3()
 {
     using (TestServer server = new TestServer(ServiceName))
     {
         server.Register();
         using (DdeClient client = new DdeClient(ServiceName, TopicName))
         {
             EventListener listener = new EventListener();
             client.Disconnected += listener.OnEvent;
             client.Connect();
             client.Dispose();
             Assert.IsTrue(listener.Received.WaitOne(Timeout, false));
             DdeDisconnectedEventArgs args = (DdeDisconnectedEventArgs)listener.Events[0];
             Assert.IsFalse(args.IsServerInitiated);
             Assert.IsTrue(args.IsDisposed);
         }
     }
 }
Пример #9
0
 void client_Disconnected(object sender, DdeDisconnectedEventArgs e)
 {
 }
Пример #10
0
 /// <summary>
 /// DDEClientからのコールバック関数
 /// </summary>
 private void OnDisconnected(object sender, DdeDisconnectedEventArgs args)
 {
     _connection.Close();
     Console.WriteLine("OnDisconnected: " + args.IsServerInitiated.ToString() + " " +
                       "" + args.IsDisposed.ToString());
 }
 private void client_Disconnected(object sender, DdeDisconnectedEventArgs e)
 {
     m_connected = false;
 }
Пример #12
0
 private static void C_Disconnected(object sender, DdeDisconnectedEventArgs e)
 {
     throw new NotImplementedException();
 }
Пример #13
0
 private void OnDisconnected(object sender, DdeDisconnectedEventArgs args)
 {
     connectedDDE = false;
 }
Пример #14
0
 private static void OnDisconnected(object sender, DdeDisconnectedEventArgs args)
 {
     Environment.Exit(0);
 }
Пример #15
0
 private static void OnDisconnected(object sender, DdeDisconnectedEventArgs args)
 {
 }
 void client_Disconnected(object sender, DdeDisconnectedEventArgs e)
 {
     Environment.Exit(0);
 }