public ContentsTreeWithSearch() { InitializeComponent(); WinFormsUtil.LogControlChildren(this); ContentsTreeContextMenus = new QbContentsTreeMenus(); // context menus for main contents tree //ContentsTreeContextMenus.QbContentsTree = this; Instance = this; }
/// <summary> /// SetupForm /// </summary> void SetupForm() { string selectedNodeTarget = "", topNodeTarget = ""; CriteriaContentsTreeList i = this; string title = "Search criteria for " + Qc.ActiveLabel; i.Text = title; string prompt = "Use the Database Contents tree and QuickSearch line to select items to be added to this list."; i.Prompt.Text = Lex.Replace(prompt, "items", Qc.ActiveLabel); i.CreateItemDataTable(); i.FillItemDataTable(); i.ItemGrid.DataSource = i.ItemGridDataTable; ContentsTreeWithSearch.ResetTreeAndCommandLine(); //topNodeTarget = SS.I.PreferredProjectId; //MetaTreeNodeType contentsFilter = MetaTreeNodeType.MetaTable | // database content types // MetaTreeNodeType.CalcField | MetaTreeNodeType.Annotation; //i.ContentsTreeWithSearch.ContentsTree.Fill( // "root", // contentsFilter, // selectedNodeTarget, // topNodeTarget, // null, // true, // false); return; }
/// <summary> /// Put focus on search line when activated /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CriteriaContentsTreeList_Activated(object sender, EventArgs e) { ContentsTreeWithSearch.Activate(); }