Exemple #1
0
        private void SetListResult(string baseName, List <string> choosen)
        {
            ListClassfy list = new ListClassfy(choosen, baseName);

            listResult            = list.Classify();
            listDescriptionResult = FileAdapter.GetDescripionToResult(listResult, baseName);
            string result = listResult + "\n" + listDescriptionResult;

            ListClassfyLabel.Text = result;
        }
Exemple #2
0
        private void SetVoteResult(string baseName, List <string> choosen)
        {
            VoteClassfy vote = new VoteClassfy(choosen);

            voteResult = vote.Vote(baseName);
            string result = voteResult;

            try
            {
                voteDescriptionResult = FileAdapter.GetDescripionToResult(result.Split("\n")[1], baseName);
                result += voteDescriptionResult;
            }
            catch { }

            VoteClassfyLabel.Text = result;
        }