Example #1
0
        private void SetTabText(DockContent floatable, INamedTab tab)
        {
            string tabText = tab.GetTabName();

            floatable.TabText = tabText;

            if (floatable != null && floatable.ParentForm != null)
            {
                floatable.ParentForm.Text = tabText + " - RDMP";
            }
        }
Example #2
0
        private void SetTabText(DockContent floatable, INamedTab tab)
        {
            string tabText        = tab.GetTabName();
            string tabToolTipText = tab.GetTabToolTip();

            floatable.TabText = tabText;

            // set tool tip to the full tab name or custom representation
            floatable.ToolTipText = string.IsNullOrEmpty(tabToolTipText) ? tabText : tabToolTipText;

            if (floatable != null && floatable.ParentForm != null)
            {
                floatable.ParentForm.Text = tabText + " - RDMP";
            }
        }