src/Misc/EFTools/EntityDesign/UI/Views/MappingDetails/MappingDetailsWindow.cs
// <summary>
//     Clear our state and revert back the default watermark
// </summary>
Clear our state and revert back the default watermark
Clear our state and revert back the default watermark
private void ClearToolWindowContents(bool resetWatermark)
        {
            UpdateTitleBar(null);
            if (resetWatermark &&
                string.Compare(_watermarkInfo.WatermarkText, _defaultWatermarkInfo.WatermarkText, StringComparison.CurrentCulture) != 0)
            {
                SetWatermarkInfo(_defaultWatermarkInfo);
            }
            if (_currentMappingDetailsInfo != null)
            {
                _currentMappingDetailsInfo.ViewModel = null;
            }
            DoSelectionChanged((object)null);
            if (MappingDetailsWindowContainer != null)
            {
                MappingDetailsWindowContainer.UpdateToolbar();
            }
        }
private void ClearToolWindowContents ( bool resetWatermark ) { UpdateTitleBar ( null ) ; if ( resetWatermark && string . Compare ( _watermarkInfo . WatermarkText , _defaultWatermarkInfo . WatermarkText , StringComparison . CurrentCulture ) != 0 ) { SetWatermarkInfo ( _defaultWatermarkInfo ) ; } if ( _currentMappingDetailsInfo != null ) { _currentMappingDetailsInfo . ViewModel = null ; } DoSelectionChanged ( ( object ) null ) ; if ( MappingDetailsWindowContainer != null ) { MappingDetailsWindowContainer . UpdateToolbar ( ) ; } }
Clear our state and revert back the default watermark
Clear our state and revert back the default watermark
// clear any names from title bar // reset the watermark to the default (it may have been set to an error message about hand-edited MSL) // clear our view model // empty the toolwindow (cause watermark to show) // update the toolbar buttons
resetWatermark
bool