예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            TestBox.Visibility = Visibility.Hidden;
            outputter          = new TextBoxOutputter(TestBox);
            Console.SetOut(outputter);

            RiskRules riskRules = new RiskRules();

            processDepend = new ProcessDepend(riskRules);
            cdv           = new CRUDDepenVulnDB();

            bgWorker.DoWork += bw_DoWork;
            bgWorker.WorkerReportsProgress      = true;
            bgWorker.WorkerSupportsCancellation = true;
            bgWorker.ProgressChanged           += bw_ProgressChanged;
            bgWorker.RunWorkerCompleted        += bw_RunWorkerCompleted;

            SliderOfUsers.Minimum     = 0;
            SliderOfUsers.Maximum     = 1;
            progressBarStatus.Maximum = (telegramBotControler.UserCount() > 1) ? telegramBotControler.UserCount() * 3 :3;
            progressBarStatus.Minimum = 0;
            progressBarStatus.Value   = 0;
        }
예제 #2
0
 public ProcessDepend(RiskRules riskRules)
 {
     this.riskRules = riskRules;
 }