Exemplo n.º 1
0
        private DataFilterParam GetParams()
        {
            DataFilterParam filterParam = new DataFilterParam();

            filterParam.FilePath     = ucOpenFile.FilePath;
            filterParam.IsFilterChar = chkChar.Checked;
            filterParam.IsFilterNum  = chkNum.Checked;

            return(filterParam);
        }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
 public DataFilter(DataFilterParam dataFilterParam)
 {
     this.CurrentFilterParam = dataFilterParam;
     this.FilePath           = this.CurrentFilterParam.FilePath;
 }