private void CompareTwoIssues() { while (mySwitchForThread) { myNewIssues = RequestIssues.Run(myLogin, myPassword); if (!Issues.IssuesCount(myIssues, myNewIssues)) { myIssues = myNewIssues; NewIssuesAppeared.Invoke(); } listOfChanges = Issues.IssuesChanges(myIssues, myNewIssues); if (listOfChanges.Count != 0) { myIssues = myNewIssues; IssueChanged.Invoke(); } Console.WriteLine("Compare Two Issues"); Thread.Sleep(5000); } }
public void IssuesQuery() { myIssues = RequestIssues.Run(myLogin, myPassword); myThread.Start(); }