public void CloseQuery(QueryTab tabQuery) { if (tabQuery == null) return; if (tabQuery.Parent == null && !(tabQuery.Parent is TabItem)) return; this.Items.Remove(tabQuery.Parent); }
public void CloseQuery(QueryTab tabQuery) { if (tabQuery == null) { return; } if (tabQuery.Parent == null && !(tabQuery.Parent is TabItem)) { return; } this.Items.Remove(tabQuery.Parent); }