// -------------------------------------------------------------- protected override void OnAfterConnect(DdeConversation c) { XlDdeChannel channel = channels[c.Topic]; c.Tag = channel; channel.IsConnected = true; }
// -------------------------------------------------------------- protected override void OnAfterConnect(DdeConversation dc) { XlDdeChannel channel = channels[dc.Topic]; dc.Tag = channel; channel.AddConversation(dc); }
// ********************************************************************** public void RmvChannel(XlDdeChannel channel) { channels.Remove(channel.Topic); foreach(DdeConversation c in channel.DropConversations()) try { base.Disconnect(c); } catch { } }
// -------------------------------------------------------------- public void RmvChannel(XlDdeChannel channel) { channels.Remove(channel.Topic); foreach (DdeConversation c in channel.DropConversations()) { try { base.Disconnect(c); } catch { } } }
// -------------------------------------------------------------- public void AddChannel(XlDdeChannel channel) { channels.Add(channel.Topic, channel); }
// -------------------------------------------------------------- public void AddChannel(string topic, XlDdeChannel channel) { channels.Add(topic, channel); }
// ********************************************************************** public void AddChannel(XlDdeChannel channel) { channels.Add(channel.Topic, channel); }