public Table(string fullPathToProject) { InitializeComponent(); var dependencyVulnerabilityDBs = new CRUDDepenVulnDB().GetList(); var vulnerabilityDBs = new CRUDVulnerabilityDB().GetObjects(); dependencyVulnerabilityDBs = dependencyVulnerabilityDBs.Where(x => x.fileScaning == fullPathToProject) .OrderBy(x => x.dateTime).ToList(); DataContext = from p in dependencyVulnerabilityDBs from t in p.vulnerabilityDBs select new { ProjectName = p.dependency.name, TaskName = t.name, Test = Math.Round(t.rezult.GetValueOrDefault(), 2), Complete = t.description }; }
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; }