Example #1
0
        private void btGetOverusedLinks_Click(object sender, EventArgs e)
        {
            SetUIBlockState(block: true);

            var popularity = new PopularityControl();
            var output     = popularity.GetOverusedLinksJson(StringToInt(tbGetOverusedLinks.Text), Indented: true);

            tbOutput.AppendText($"\r\nPRINTING OVERUSED LINKS, POPULARITY LIMIT= {tbGetOverusedLinks.Text}:\r\n{output}");
            ScrollToEnd();


            SetUIBlockState(block: false);
        }
Example #2
0
        private void btN_MostPopular_Click(object sender, EventArgs e)
        {
            SetUIBlockState(block: true);
            try
            {
                var popularity = new PopularityControl();
                var output     = popularity.Get_N_MostPopularJson(StringToInt(tbN_MostPopular.Text), Indented: true);
                tbOutput.AppendText($"\r\nPRINTING {tbN_MostPopular.Text} MOST POPULAR LINKS:\r\n{output}");
                ScrollToEnd();
            }
            catch (Exception ex)
            {
                tbOutput.AppendText($"\r\nException occured: {ex.Message}\r\n");
            }

            SetUIBlockState(block: false);
        }