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

            XTraderModeTTAPIOptions envOptions = new XTraderModeTTAPIOptions();

            // Enable or Disable the TT API Implied Engine
            envOptions.EnableImplieds = false;

            // Create and attach a UI Dispatcher to the main Form
            // When the form exits, this scoping block will auto-dispose of the Dispatcher
            using (var disp = Dispatcher.AttachUIDispatcher())
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

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

                Application.Run(timeAndSales);
            }
        }
Exemple #2
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.
                AutospreaderManagerForm autospreaderManagerForm = new AutospreaderManagerForm();
                ApiInitializeHandler    handler = new ApiInitializeHandler(autospreaderManagerForm.ttApiInitHandler);
                TTAPI.CreateXTraderModeTTAPI(disp, handler);

                Application.Run(autospreaderManagerForm);
            }
        }
Exemple #3
0
        static void Main()
        {
            // confirm TTAPI installation archetecture
            AboutDTS.TTAPIArchitectureCheck();

            // Create and attach a UI Dispatcher to the main Form
            // When the form exits, this scoping block will auto-dispose of the Dispatcher
            using (var disp = Dispatcher.AttachUIDispatcher())
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

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

                Application.Run(orderFilter);
            }
        }
 /// <summary>
 /// Event which opens the About window
 /// </summary>
 private void mnuAbout_Click(object sender, EventArgs e)
 {
     AboutDTS aboutForm = new AboutDTS();
     aboutForm.ShowDialog(this);
 }
Exemple #5
0
        /// <summary>
        /// Event which opens the About window
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void mnuAbout_Click(object sender, EventArgs e)
        {
            AboutDTS aboutForm = new AboutDTS();

            aboutForm.ShowDialog(this);
        }
        /// <summary>
        /// Display the About dialog box.
        /// </summary>
        /// <param name="sender">Object which fires the method</param>
        /// <param name="e">Event arguments of the callback</param>
        private void AboutMenuItem_Click(object sender, System.EventArgs e)
        {
            AboutDTS aboutForm = new AboutDTS();

            aboutForm.ShowDialog(this);
        }
 private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
 {
     AboutDTS aboutForm = new AboutDTS();
     aboutForm.Show();
 }
 /// <summary>
 /// Display the About dialog box.
 /// </summary>
 /// <param name="sender">Object which fires the method</param>
 /// <param name="e">Event arguments of the callback</param>
 private void AboutMenuItem_Click(object sender, System.EventArgs e)
 {
     AboutDTS aboutForm = new AboutDTS();
     aboutForm.ShowDialog(this);
 }
Exemple #9
0
        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AboutDTS aboutForm = new AboutDTS();

            aboutForm.Show();
        }