本文整理汇总了C#中MonoDevelop.VersionControl.Git.GitRepository.GetStashes方法的典型用法代码示例。如果您正苦于以下问题:C# GitRepository.GetStashes方法的具体用法?C# GitRepository.GetStashes怎么用?C# GitRepository.GetStashes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MonoDevelop.VersionControl.Git.GitRepository
的用法示例。
在下文中一共展示了GitRepository.GetStashes方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StashManagerDialog
public StashManagerDialog (GitRepository repo)
{
this.Build ();
stashes = repo.GetStashes ();
store = new ListStore (typeof(Stash), typeof(string), typeof(string));
list.Model = store;
list.AppendColumn (GettextCatalog.GetString ("Date/Time"), new CellRendererText (), "text", 1);
list.AppendColumn (GettextCatalog.GetString ("Comment"), new CellRendererText (), "text", 2);
Fill ();
TreeIter it;
if (store.GetIterFirst (out it))
list.Selection.SelectIter (it);
UpdateButtons ();
}
示例2: StashManagerDialog
public StashManagerDialog (GitRepository repo)
{
this.Build ();
this.UseNativeContextMenus ();
repository = repo;
stashes = repo.GetStashes ();
store = new ListStore (typeof(Stash), typeof(string), typeof(string));
list.Model = store;
list.SearchColumn = -1; // disable the interactive search
list.AppendColumn (GettextCatalog.GetString ("Date/Time"), new CellRendererText (), "text", 1);
list.AppendColumn (GettextCatalog.GetString ("Comment"), new CellRendererText (), "text", 2);
Fill ();
TreeIter it;
if (store.GetIterFirst (out it))
list.Selection.SelectIter (it);
UpdateButtons ();
list.Selection.Changed += delegate {
UpdateButtons ();
};
}