Example #1
0
        public ConverterForm()
        {
            InitializeComponent();

            this.StartPosition = FormStartPosition.CenterScreen;

            sm_Event = new AutoResetEvent (false);

            m_DelegateAddString = new DelegateAddString (this.AddString);
            m_DelegateUpdateProgressbar = new DelegateUpdateProgressBar (this.UpdateProgressBar);
            m_DelegateShowCurrentWord = new DelegateShowCurrentWord (this.ShowCurrentWord);
            m_DelegateSignalCompletion = new DelegateSignalCompletion (this.OnConversionEnd);

            buttonOK.Enabled = false;

            if (numericUpDownStopAfter.Enabled)
            {
                m_iStopAfter = (int)numericUpDownStopAfter.Value;
            }
            else
            {
                m_iStopAfter = -1;
            }

            m_iSelectedTab = tabControl.SelectedIndex;
            m_bSaveTempData = false;
            m_bTextBoxOverflow = false;

            textBoxSourcePath.Text = Properties.Settings.Default.SourcePath;
            textBoxDbLocation.Text = Properties.Settings.Default.DbPath;
            textBoxLogPath.Text = Properties.Settings.Default.LogPath;
            textBoxUnprocessedPath.Text = Properties.Settings.Default.UnprocessedPath;
            textBoxSearchSource.Text = Properties.Settings.Default.SearchSourcePath;
            textBoxSearchLog.Text = Properties.Settings.Default.SearchLogPath;
            textBoxSearchString.Text = Properties.Settings.Default.SearchString;
        }