Exemple #1
0
        static void Main()
        {
            // Confirm TTAPI installation archetecture.
            AboutDTS.TTAPIArchitectureCheck();

            using (Dispatcher disp = Dispatcher.AttachUIDispatcher())
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                // Create an instance of TTAPI.
                frmMarketExplorer    marketExplorer = new frmMarketExplorer();
                ApiInitializeHandler handler        = new ApiInitializeHandler(marketExplorer.ttApiInitHandler);
                TTAPI.CreateXTraderModeTTAPI(disp, handler);

                Application.Run(marketExplorer);
            }
        }
        static void Main()
        {
            // Confirm TTAPI installation archetecture.
            AboutDTS.TTAPIArchitectureCheck();

            using (Dispatcher disp = Dispatcher.AttachUIDispatcher())
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                // Create an instance of TTAPI.
                frmMarketExplorer marketExplorer = new frmMarketExplorer();
                ApiInitializeHandler handler = new ApiInitializeHandler(marketExplorer.ttApiInitHandler);
                TTAPI.CreateXTraderModeTTAPI(disp, handler);

                Application.Run(marketExplorer);
            }
        }
        static void Main()
        {
            // Confirm TTAPI installation archetecture.
            AboutDTS.TTAPIArchitectureCheck();

            using (Dispatcher dispatcher = Dispatcher.AttachUIDispatcher())
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                // Create an instance of TTAPI.
                frmMarketExplorer marketExplorer = new frmMarketExplorer();
                TTAPI.XTraderModeDelegate xtDelegate = new TTAPI.XTraderModeDelegate(marketExplorer.initTTAPI);
                TTAPI.CreateXTraderModeTTAPI(dispatcher, xtDelegate);

                Application.Run(marketExplorer);
            }
        }