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