} // _090810_180151 /// <inheritdoc/> /// <remarks> /// Prepares for opening this panel as a child panel. /// </remarks> protected override bool CanOpenAsChild(Panel parent) { if (parent == null) { throw new ArgumentNullException("parent"); } if (Lookup == null) { return(true); } // lookup: try to post the current // 090809 ??? perhaps I have to rethink TablePanel tp = this as TablePanel; if (tp != null) { // assume parent Description = child Name string value = parent.CurrentFile.Description; PostName(value); } return(true); }
// Propagates exclude and hidden member patterns from the parent table. void UpdateExplorerPatterns() { TablePanel table = Parent as TablePanel; if (table == null) { return; } if (string.IsNullOrEmpty(Explorer.ExcludeMemberPattern) && !string.IsNullOrEmpty(table.ExcludeMemberPattern)) { Explorer.ExcludeMemberPattern = table.ExcludeMemberPattern; } if (string.IsNullOrEmpty(Explorer.HideMemberPattern) && !string.IsNullOrEmpty(table.HideMemberPattern)) { Explorer.HideMemberPattern = table.HideMemberPattern; } }