Beispiel #1
0
        public Korea(int type)
        {
            InitializeComponent();
            dr = Choose.Show("Please Select the Button You Want to Proceed. . .", "Choose", "Trading", "BackTest", "Exit");

            if (dr == DialogResult.Yes)
            {
                Confirm.Get().Show();
                api = Futures.Get();
                new Statistics(type);
                new Temporary(type);
                api.SetAPI(axAPI);
                api.StartProgress(type);
                api.SendExit += OnReceiveExit;
            }
            else if (dr == DialogResult.No)
            {
                axAPI.Dispose();
                int i, l = type > 0 ? 50 : 100;

                for (i = type > 0 ? 1 : 10; i < l; i++)
                {
                    new Statistics(i, type);
                }

                new Storage(type);
                Box.Show("Complete. . .♬", "Notice", 3750);
                OnReceiveExit();
            }
            else
            {
                OnReceiveExit();
            }
        }
Beispiel #2
0
        public void OnReceiveOrder(string sSlbyTP, string sPrice)
        {
            request.RequestTrData(new Task(() =>
            {
                if (Confirm.Get().CheckCurrent())
                {
                    ErrorCode = axAPI.SendOrderFO("GoblinBat", ScreenNo, Account, Code, 1, sSlbyTP, "9", 1, sPrice, "");
                }

                else
                {
                    Box.Show(pt, "Notice", waiting / 3);
                }

                if (ErrorCode != 0)
                {
                    new Error(ErrorCode);
                }
            }));
        }