本文整理汇总了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());
}
}
}