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(); }; }
internal static void Remove(this StashCollection sc, Stash stash) { int i = 0; foreach (var s in sc) { if (s.FriendlyName == stash.FriendlyName) { sc.Remove(i); break; } ++i; } }
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(); }
public MergeCommandResult Apply(ProgressMonitor monitor) { return(StashCollection.Apply(monitor, this)); }
public MergeCommandResult Apply() { return(StashCollection.Apply(this)); }