Esempio n. 1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="category"></param>
        public QualifyingViewModel(RnCateg category)
        {
            // Set this category
            Category = category;

            // Display the qualifying
            GetQualifying();

            /// Setup the commands
            NextCategory = new RelayCommand(GetNextCategory);
            PrevCategory = new RelayCommand(GetPrevCategory);
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public CurrentPairViewModel(RnCateg categ, string mode)
        {
            // Set current category
            CurrentCategory = categ;

            // Set the mode
            Mode = mode;

            GetCurrentPair();

            // Start a background thread for monitoring cnn_prediction changes
            var ts = new ThreadStart(ListenForUpdates);
            var predictionsThread = new Thread(ts);

            predictionsThread.Start();
        }