private IPage FindOrCreatePage(ITdiTab tab) { if (tab == null) { return(null); } ITdiPage page = AllPages.OfType <ITdiPage>().FirstOrDefault(x => x.TdiTab == tab); if (page == null) { page = new TdiTabPage(tab, null); pages.Add(page); } return((IPage)page); }
public IPage FindPage(Gdk.Window window) { return(AllPages.OfType <IGtkWindowPage>().FirstOrDefault(x => x.GtkDialog.GdkWindow == window)); }
private IPage FindPage(ITdiTab tab) { return(AllPages.OfType <ITdiPage>().FirstOrDefault(x => x.TdiTab == tab)); }