// **********************************************************************

        public Position(TermManager tmgr, IDataReceiver dataReceiver)
        {
            this.tmgr         = tmgr;
            this.dataReceiver = dataReceiver;

            byOrdersUpdated = true;
        }
        // **********************************************************************

        public StopOrders(TermManager tmgr, IDataReceiver dataReceiver)
        {
            this.tmgr         = tmgr;
            this.dataReceiver = dataReceiver;

            orders = new List <StopOrder>();
        }
        private void PredictFXChartsMain_Shown(object sender, EventArgs e)
        {
            if (!checkTrialPeriod())
            {
                ShowMessage("Пробный период использования программы закончен. Скачайте пожалуйста обновление на сайте PreditGroup.com.");
                this.Close();
            }

            dm   = new DataManager();
            tmgr = new TermManager(dm);
            MarketProvider.SetReceiver(dm);
            ChartsManager.SetDataManager(dm);
            ChartsManager.SetTermManager(tmgr);

            MarketProvider.Activate();
            ChartsManager.Activate();

            tmgr.Connect();
        }
Beispiel #4
0
 public static void SetTermManager(TermManager _tm)
 {
     tm = _tm;
 }