tools/VsIdeHostAdapter/TargetAddIn/HostSide/VsIdeHostAdapterRunConfigControl.cs
/// <summary>
/// Handle the event that core (non-host and not-test-specific) run config data are modified outside this editor.
/// </summary>
/// <param name="sender"></param>
/// <param name="dirtyEventArgs">contains run config object that is changed outside</param>
Handle the event that core (non-host and not-test-specific) run config data are modified outside this editor.
Handle the event that core ( non - host and not - test - specific ) run config data are modified outside this editor .
void IRunConfigurationEditor.OnCommonDataDirty(object sender, CommonRunConfigurationDirtyEventArgs dirtyEventArgs)
        {
            if (m_data == null)
            {
                SetDirty();
                if (m_hiveCombo.SelectedIndex < 0)
                {
                    m_hiveCombo.SelectedItem = VSRegistry.GetDefaultVersion();
                }
            }
        }
void IRunConfigurationEditor . OnCommonDataDirty ( object sender , CommonRunConfigurationDirtyEventArgs dirtyEventArgs ) { if ( m_data == null ) { SetDirty ( ) ; if ( m_hiveCombo . SelectedIndex < 0 ) { m_hiveCombo . SelectedItem = VSRegistry . GetDefaultVersion ( ) ; } } }
Handle the event that core (non-host and not-test-specific) run config data are modified outside this editor.
Handle the event that core ( non - host and not - test - specific ) run config data are modified outside this editor .
// Our test config does not depend on other data contained in the run config // but for the case when nobody modifies our config we still want to have our default section in RC, // that's why when the user switches hosts to VS IDE and we did not exist we say we are dirty, and get data will return our data. // Select 1st item
sender
object
None
dirtyEventArgs
CommonRunConfigurationDirtyEventArgs
contains run config object that is changed outside
contains run config object that is changed outside