当前位置: 首页>>代码示例>>C#>>正文


C# Author.getstatsGraphUrl方法代码示例

本文整理汇总了C#中Author.getstatsGraphUrl方法的典型用法代码示例。如果您正苦于以下问题:C# Author.getstatsGraphUrl方法的具体用法?C# Author.getstatsGraphUrl怎么用?C# Author.getstatsGraphUrl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Author的用法示例。


在下文中一共展示了Author.getstatsGraphUrl方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: setResult


//.........这里部分代码省略.........
                    if (i > maxCount && i != 11)
                    {

                        b.IsEnabled = false;
                        b.Visibility = Visibility.Hidden;
                    }
                    pageList.Add(b);
                    if (currentPageSelected == 1)
                    {
                        pageList[0].Visibility = Visibility.Hidden;
                        pageList[0].IsEnabled = false;
                    }
                    else
                    {
                        pageList[0].IsEnabled = true;
                        pageList[0].Visibility = Visibility.Visible;
                    }
                    Pagination.Children.Add(pageList[i]);
                }
            }
            try
            {
                changePagination(currentPageSelected);
            }
            catch (Exception)
            { 
            }

            if (resultList != null)
            {

                Pagination.Visibility = Visibility.Visible;
                Pagination.IsEnabled = true;
                foreach (Result r in resultList)
                {
                    List<Paper> paperList = new List<Paper>();
                    paperList = r.getResults();
                    Page2 page;
                    ListBoxItem item;

                    foreach (Paper p in paperList)
                    {
                        page = new Page2(mw, this, p, fav);
                        item = new ListBoxItem();
                        page.setAuthors(p.getauthors() + p.getYear());
                        page.setTitle(p.gettitle());
                        page.setDescription(p.getdescription());
                        page.setNumberOfCitations(p.getnumCitations());
                        page.setlinkUrl(p.geturl());
                        page.setCitationList(p.getcitationsUrl());


                        item = page.listItem;

                        page.Content = null;
                        this.ResultsPane.Items.Add(item);
                    }

                }


                type = resultList.type;
                ResultType resultType = resultList.resultType;
                if ((type != null && type.getname() != null) && resultType == ResultType.AUTHOR)
                {
                    //Console.WriteLine("Ohhhhhhhhhhhhhhhhh I didnt expect");
                    Author auth = new Author();
                    auth = (Author)type;
                    this.statsUrl = auth.getstatsGraphUrl();
                    Page3 auth_profile = new Page3(this);
                    auth_profile.auth_name.Text = type.getname();
                    auth_profile.num_cite.Text = type.getnumPapers().ToString();
                    auth_profile.hindex.Text = type.gethIndex().ToString();
                    auth_profile.iindex.Text = type.getiIndex().ToString();
                    Grid g = new Grid();
                    g = auth_profile.author_profile;
                    auth_profile.Content = null;
                    this.Author.Children.Clear();
                    this.Author.Children.Add(g);

                }
                else if (type != null && resultList.resultType == ResultType.JOURNAL)
                {
                    //this.Author.Text = "";
                    type = new Journal();
                    type = (Journal)resultList.type;
                    JournalPage auth_profile = new JournalPage(this);
                    auth_profile.journal_name.Text = this.searchBox.Text;
                    Journal j = (Journal)type;
                    Grid g = new Grid();
                    g = auth_profile.author_profile;
                    auth_profile.Content = null;
                    this.Author.Children.Clear();
                    this.Author.Children.Add(g);
                    this.statsUrl = j.getStatsUrl();
                    //  Console.WriteLine("==========="+j.getStatsUrl().ToString());
                }
            }

        }
开发者ID:srinivasans,项目名称:OpenSoft2013,代码行数:101,代码来源:TabPage.xaml.cs


注:本文中的Author.getstatsGraphUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。