Пример #1
0
        /// <summary>
        /// Initializes Prediction Services
        /// </summary>
        public static void Initialize(Menu mainMenu, string prefMenuName = "SPRED")
        {
            if (blInitialized)
            {
                throw new Exception("SPrediction Already Initialized");
            }

            PathTracker.Initialize();
            StasisPrediction.Initialize();
            ConfigMenu.Initialize(mainMenu, prefMenuName);
            Drawings.Initialize();

            blInitialized = true;
        }
Пример #2
0
        public static Menu Initialize()
        {
            try
            {
                PathTracker.Initialize();
                StasisPrediction.Initialize();
                Menu spredMenu = ConfigMenu.Initialize();
                Drawings.Initialize();

                blInitialized = true;
                return(spredMenu);
            }
            catch
            {
                Menu m = new Menu("SPREDX", "SPrediction");
                m.Add(new MenuList("PREDICTONLIST", "Prediction Method", new[] { "SPrediction", "Common Prediction" })
                {
                    Index = 1
                });
                return(m);
            }
        }