src/Misc/EFTools/EntityDesign/UI/Views/MappingDetails/MappingDetailsWindow.cs
// <summary>
//     Updates the title bar to include the item's name that we are editing
// </summary>
Updates the title bar to include the item's name that we are editing
Updates the title bar to include the item ' s name that we are editing
private void UpdateTitleBar(string name)
        {
            var fullName = Resources.MappingDetails_WindowTitle;
            if (!string.IsNullOrEmpty(name))
            {
                fullName = String.Format(CultureInfo.CurrentCulture, "{0} - {1}", fullName, name);
            }
            var frame = Frame;
            if (frame != null)
            {
                VsErrorHandler.ThrowOnFailure(
                    frame.SetProperty((int)VsShell.__VSFPROPID.VSFPROPID_Caption, fullName), VSConstants.E_UNEXPECTED);
            }
        }
private void UpdateTitleBar ( string name ) { var fullName = Resources . MappingDetails_WindowTitle ; if ( ! string . IsNullOrEmpty ( name ) ) { fullName = String . Format ( CultureInfo . CurrentCulture , " " , fullName , name ) ; } var frame = Frame ; if ( frame != null ) { VsErrorHandler . ThrowOnFailure ( frame . SetProperty ( ( int ) VsShell . __VSFPROPID . VSFPROPID_Caption , fullName ) , VSConstants . E_UNEXPECTED ) ; } }
Updates the title bar to include the item's name that we are editing
Updates the title bar to include the item ' s name that we are editing
// set window title based on selection // this will return E_UNEXPECTED if the frame is disposed, ignore that as there's no need to set the title in that case.
name
string