Example #1
0
        // --------------------------------------------------------------

        protected override void OnAfterConnect(DdeConversation c)
        {
            XlDdeChannel channel = channels[c.Topic];

            c.Tag = channel;
            channel.IsConnected = true;
        }
Example #2
0
        // --------------------------------------------------------------

        protected override void OnAfterConnect(DdeConversation dc)
        {
            XlDdeChannel channel = channels[dc.Topic];

            dc.Tag = channel;
            channel.AddConversation(dc);
        }
Example #3
0
    // **********************************************************************

    public void RmvChannel(XlDdeChannel channel)
    {
      channels.Remove(channel.Topic);

      foreach(DdeConversation c in channel.DropConversations())
        try { base.Disconnect(c); }
        catch { }
    }
Example #4
0
        // --------------------------------------------------------------

        public void RmvChannel(XlDdeChannel channel)
        {
            channels.Remove(channel.Topic);

            foreach (DdeConversation c in channel.DropConversations())
            {
                try { base.Disconnect(c); }
                catch { }
            }
        }
Example #5
0
        // --------------------------------------------------------------

        public void AddChannel(XlDdeChannel channel)
        {
            channels.Add(channel.Topic, channel);
        }
Example #6
0
        // --------------------------------------------------------------

        public void AddChannel(string topic, XlDdeChannel channel)
        {
            channels.Add(topic, channel);
        }
Example #7
0
    // **********************************************************************

    public void AddChannel(XlDdeChannel channel)
    {
      channels.Add(channel.Topic, channel);
    }