public void SetCallbackInfo(CleaningThreadController ctc, string sShortName)
		{
			m_theFatController = ctc;
			m_sFileNameForCallBack = sShortName;
		}
Beispiel #2
0
        private void buttonStart_Click(object sender, EventArgs e)
        {
            if (!ValidateParams())
                return;

            m_iCount = 0;
            m_ApiTime = 0;
            m_BinTime = 0;
            m_StartCloseAppTime = 0;

            m_iLightSpeedCorruptedDocs  = 0;
            m_iLightSpeedCleanIncompletes =0;
            m_iLightSpeedCleanCrashes = 0;
            m_iAPICleanIncompletes = 0 ;
            m_iAPICleanCrashes = 0;
            m_iDocumentsProcessed = 0;

            SetButtonStates(true);

            listViewProblemFiles.Items.Clear();
            listViewOkFiles.Items.Clear();
            ResultsText.Clear();

            m_ctc = new CleaningThreadController(this, textBoxSourceFolderToClean.Text, m_advancedOptions);
            
            m_ctc.LoggingFile = textBoxOutputFile.Text;
            m_threadCleaning = new Thread(new ThreadStart(m_ctc.Execute));
            ResetWatchDog();
            m_threadCleaning.Start();
        }