Esempio n. 1
0
        // internal function to use tickserver to load desired
        // alternate tick sources
        private void LoadTicks()
        {
            if (TicksLoaded == false)
            {
                string file1, file2;

                // obtain the optional filenames
                // from the RealParameters parser
                file1 = RParser.GetString("file1", null);
                file2 = RParser.GetString("file2", null);

                // backup the tick source currently in use
                //TickBackup = Framework.TickServer.Ticks;

                // if parameter was found, load and save tick source
                if (file1 != null)
                {
                    Framework.TickServer.LoadTickFile(file1);
                    //Ticks1 = Framework.TickServer.Ticks;
                }

                if (file2 != null)
                {
                    Framework.TickServer.LoadTickFile(file2);
                    //Ticks2 = Framework.TickServer.Ticks;
                }

                TicksLoaded = true;
            }
        }