private DataFilterParam GetParams() { DataFilterParam filterParam = new DataFilterParam(); filterParam.FilePath = ucOpenFile.FilePath; filterParam.IsFilterChar = chkChar.Checked; filterParam.IsFilterNum = chkNum.Checked; return(filterParam); }
private void btnStart_Click(object sender, EventArgs e) { if (this.CheckParams()) { DataFilterParam filterParam = GetParams(); dataFilter = new DataFilter(filterParam); dataFilter.CurrentLineChanged += dataFilter_CurrentLineChanged; dataFilter.ProcessFinished += dataFilter_ProcessFinished; dataFilter.Start(); ucProgress.StartTimer(); } }
public DataFilter(DataFilterParam dataFilterParam) { this.CurrentFilterParam = dataFilterParam; this.FilePath = this.CurrentFilterParam.FilePath; }