Exemple #1
0
        private void listTrainFiles_btn_Click(object sender, EventArgs e)
        {
            if (trainFrom == null || trainFrom.IsDisposed)
            {
                trainFrom = new TrainingFilesForm(_trainTask);
                trainFrom.RecalledEntry += RecalledRow;
            }

            trainFrom.Show();
        }
Exemple #2
0
        public RegControl()
        {
            _regMode = false;

            bool designMode = (LicenseManager.UsageMode == LicenseUsageMode.Designtime);

            if (!designMode)
            {
                ExtractionWrapper.OptionWrapper.SetLog(VCContext.Instance.MFCCOptions.LogLevel);
                recoding   = false;
                _trainTask = new TrainingTask();
                trainFrom  = new TrainingFilesForm(_trainTask);
                trainFrom.RecalledEntry += RecalledRow;
            }

            InitializeComponent();
            waveViewer.TimeSelectedChanged += SelectedTimeEventHandler;
            _waveOut            = new NAudio.Wave.WaveOut();
            _selectedChart      = showChart.Selected;
            regMode_cbx.Checked = _regMode;
            initSampleRate_cbx();
            FreshListDevices();
        }