public TDAPIOLELib.DashboardPage CreatePage(TDAPIOLELib.DashboardFolder parentFolder, String PageName) { TDAPIOLELib.DashboardPageFactory dashboardPageFactory = parentFolder.DashboardPageFactory; TDAPIOLELib.DashboardPage dashboardPage = dashboardPageFactory.AddItem(System.DBNull.Value); dashboardPage.Name = PageName; dashboardPage.Post(); return(dashboardPage); }
public TDAPIOLELib.List FindChildPages(TDAPIOLELib.DashboardFolder dashboardFolder) { TDAPIOLELib.DashboardPageFactory dashboardPageFactory = dashboardFolder.DashboardPageFactory; TDAPIOLELib.List list = new TDAPIOLELib.List(); foreach (TDAPIOLELib.DashboardPage DP in dashboardPageFactory.NewList("")) { list.Add(DP); } return(list); }
public Boolean DeletePage(TDAPIOLELib.DashboardPage dashboardPage) { TDAPIOLELib.DashboardPageFactory dashboardPageFactory = tDConnection.DashboardPageFactory; dashboardPageFactory.RemoveItem(dashboardPage.ID); return(true); }