public void RemoveRegion(Transform content) { Tab tab = Region.FindTab(content); if (tab != null) { tab.Close(); } }
public void OnPanelAttemptClose(Tab tab) { Dialog dlg = m_dm.ShowDialog(null, "Confirmation", "Are you sure you want to close panel?", (sender, okArgs) => { tab.Close(); }, "Yes", (sender, cancelArgs) => { }, "No"); dlg.IsOkVisible = true; dlg.IsCancelVisible = true; }
public void OnTabAttemptClose(Tab tab) { Dialog dlg = m_dm.ShowDialog(null, "Confirmation", string.Format("Are you sure you want to close {0} tab", tab.Text), (sender, okArgs) => { tab.Close(); }, "Yes", (sender, cancelArgs) => { }, "No"); dlg.IsOkVisible = true; dlg.IsCancelVisible = true; }