Beispiel #1
0
        private RankerFactory GetRankerFactory()
        {
            this.GetParams();
            RankerFactory rankerFactory = new RankerFactory(txtRankFilePath.Text.Trim(),
                                                            (DataFormat)comboDataType.SelectedValue, insertParamsDic);

            rankerFactory.CurrentLineChanged += dataRanker_CurrentLineChanged;
            rankerFactory.ProcessFinished    += dataRanker_ProcessFinished;
            return(rankerFactory);
        }
Beispiel #2
0
 private void StartDataRank()
 {
     if (this.CheckRankData())
     {
         this.SaveParams();
         this.SetRankButtonEabled(false);
         rankerFactory = GetRankerFactory();
         rankerFactory.Start();
         this.StartTimer();
     }
 }
Beispiel #3
0
 private void StopRank()
 {
     this.SetRankButtonEabled(true);
     this.StopTimer();
     if (null != this.rankerFactory)
     {
         rankerFactory.Stop();
         rankerFactory.CurrentLineChanged -= dataRanker_CurrentLineChanged;
         rankerFactory.ProcessFinished    -= dataRanker_ProcessFinished;
         rankerFactory = null;
     }
 }