public static MorphemePipeLine GetInstance()
        {
            if (Instance == null)
            {
                Instance = new MorphemePipeLine();
            }

            return(Instance);
        }
Example #2
0
        private void buttonExportAndProcessAll_Click(object sender, EventArgs e)
        {
            // disbale UI
            Enabled = false;

            StartTimer = DateTime.Now;

            // reset progress bar (with a small amount of progress)
            progressBar1.Value = 2;

            // Export and process.
            MorphemePipeLine.GetInstance().Process(true, new ProgressChangedEventHandler(worker_ProgressChanged), new RunWorkerCompletedEventHandler(worker_RunWorkerCompleted));
        }