Exemplo n.º 1
0
        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);
            }
        }