本文整理汇总了C#中IDisplay.Write方法的典型用法代码示例。如果您正苦于以下问题:C# IDisplay.Write方法的具体用法?C# IDisplay.Write怎么用?C# IDisplay.Write使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IDisplay
的用法示例。
在下文中一共展示了IDisplay.Write方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DoWork
public void DoWork(IDisplay display, IOptions options)
{
_trello.Authorize(options.AuthorizationToken);
display.Write("Fetching cards...");
var cards = _cardProvider.Fetch(_trello, options);
foreach (var cardTask in _taskBuilder.BuildFor(options))
{
cardTask.DoWork(cards, _trello, display);
}
display.Skip();
display.Write("Release notes generated successfully!");
}
示例2: DoWork
public void DoWork(Card[] cards, ITrello trello, IDisplay display)
{
foreach (var card in cards.Select(x => new ReleaseNotesCard(x)))
{
display.Write(string.Format("{0} - {1}", card.Labels, card.Name));
}
}
示例3: DoWork
public void DoWork(Card[] cards, ITrello trello, IDisplay display)
{
display.Skip();
display.Write("Archiving cards...");
foreach (var card in cards)
{
trello.Cards.Archive(card);
}
}
示例4: DoWork
public void DoWork(Card[] cards, ITrello trello, IDisplay display)
{
display.Skip();
display.Write("Updating release version on cards...");
foreach (var card in cards)
{
if (card.Desc.Contains(ReleaseTag(_options.SoftwareVersion)))
return;
card.Desc += ReleaseTag(_options.SoftwareVersion);
trello.Cards.ChangeDescription(card, card.Desc);
}
}