/// <summary> /// Sends the MSG from source window to destination window, using WM_COPYDATA. /// </summary> /// <param name="message">The message.</param> /// <param name="messagetype">The messagetype.</param> /// <param name="destinationwindow">The destinationwindow.</param> /// <returns></returns> public static long SendMsg(string message, TL2 messagetype, IntPtr sourcehandle, string destinationwindow) { IntPtr him = WMUtil.HisHandle(destinationwindow); return(WMUtil.SendMsg(message, him, sourcehandle, (int)messagetype)); }
/// <summary> /// Used for testing the TL-BROKER api (programmatically) /// </summary> public void GoTest() { Disconnect(); himh = WMUtil.HisHandle(WMUtil.TESTWINDOW); LinkType = TLTypes.TESTBROKER; Register(); }
/// <summary> /// Makes TL client use Broker Simulation mode (Broker must be logged in and TradeLink loaded) /// </summary> public void GoSim() { Disconnect(); himh = WMUtil.HisHandle(WMUtil.SIMWINDOW); LinkType = TLTypes.SIMBROKER; Register(); }
/// <summary> /// Attemptions connection to TL Replay Server /// </summary> public void GoHist() { Disconnect(); himh = WMUtil.HisHandle(WMUtil.REPLAYWINDOW); LinkType = TLTypes.HISTORICALBROKER; Register(); }
/// <summary> /// Makes TL client use Broker LIVE server (Broker must be logged in and TradeLink loaded) /// </summary> public void GoLive() { Disconnect(); himh = WMUtil.HisHandle(WMUtil.LIVEWINDOW); LinkType = TLTypes.LIVEBROKER; Register(); }