static void Main() { // Confirm TTAPI installation archetecture. AboutDTS.TTAPIArchitectureCheck(); using (Dispatcher disp = Dispatcher.AttachUIDispatcher()) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Create an instance of TTAPI. AutospreaderManagerForm autospreaderManagerForm = new AutospreaderManagerForm(); ApiInitializeHandler handler = new ApiInitializeHandler(autospreaderManagerForm.ttApiInitHandler); TTAPI.CreateXTraderModeTTAPI(disp, handler); Application.Run(autospreaderManagerForm); } }
static void Main() { // Confirm TTAPI installation archetecture. AboutDTS.TTAPIArchitectureCheck(); using (Dispatcher dispatcher = Dispatcher.AttachUIDispatcher()) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Create an instance of TTAPI. AutospreaderManagerForm autospreaderManagerForm = new AutospreaderManagerForm(); TTAPI.XTraderModeDelegate xtDelegate = new TTAPI.XTraderModeDelegate(autospreaderManagerForm.initTTAPI); TTAPI.CreateXTraderModeTTAPI(dispatcher, xtDelegate); Application.Run(autospreaderManagerForm); } }