Esempio n. 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);
        }
Esempio n. 2
0
 private void StartDataRank()
 {
     if (this.CheckRankData())
     {
         this.SaveParams();
         this.SetRankButtonEabled(false);
         rankerFactory = GetRankerFactory();
         rankerFactory.Start();
         this.StartTimer();
     }
 }
Esempio n. 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;
     }
 }