internal object [] GetValuesForPage (Page page) { return new object[] { page.Index, GetPageTooltip(page), page }; }
string GetPageTooltip (Page page) { return page.Name; }
public void UpdateForPage (TreeIter iter, Page page) { SetValue (iter, SortColumn, page.Index); SetValue (iter, TooltipColumn, GetPageTooltip(page)); SetValue (iter, PageColumn, page); }
public TreeIter GetIterForPage (Page page) { return TreeIters.FirstOrDefault (iter => { return GetValue (iter, PageColumn) == page; }); }
public string this[Page page] { get { return this[page.Index]; } }
void OnPagesRemoved (Page [] pages) { foreach (var page in pages) { var iter = store.GetIterForPage (page); if (!TreeIter.Zero.Equals (iter)) { store.Remove (ref iter); } } UpdateAllPages (); Refresh (); }
void OnPagesChanged (Page [] pages) { Refresh (); }
void OnPagesAdded (int index, Page [] pages) { foreach (var page in pages) { store.InsertWithValues (index, store.GetValuesForPage (page)); } UpdateAllPages (); Refresh (); }