2013-02-15 79 views
0

我需要掛起的更改窗口中打開衝突標籤:如何以編程方式打開待定更改 - 衝突窗口?

我已經有了:

Object customIn = null; 
    Object customOut = null; 
    //Show TfsPendingChanges 
    m_applicationObject.ExecuteCommand("View.TfsPendingChanges", ""); 
    //Refresh 
    m_applicationObject.Commands.Raise("{FFE1131C-8EA1-4D05-9728-34AD4611BDA9}", 4808, ref customIn, ref customOut); 
    customOut = null; 

    //Get Conflicts 
    m_applicationObject.Commands.Raise("{FFE1131C-8EA1-4D05-9728-34AD4611BDA9}", 4832, ref customIn, ref customOut); 

但我沒有找到一個方法來公開衝突TAB!即使「獲取衝突」按鈕(4832)也不會觸發該TAB!

任何人都可以幫助我嗎?

回答

0
public void refreshPendingChanges() 
{ 
    Object customIn = null; 
    Object customOut = null; 

    //Show TfsPendingChanges 
    m_applicationObject.ExecuteCommand("View.TfsPendingChanges", ""); 

    //Refresh 
    m_applicationObject.Commands.Raise("{FFE1131C-8EA1-4D05-9728-34AD4611BDA9}", 4808, ref customIn, ref customOut); 

    //Activate Source Explorer 
    m_applicationObject.DTE.Windows.Item("{99B8FA2F-AB90-4F57-9C32-949F146F1914}").Activate(); //I get this GUID recording a Macro. 
    //Show Conflicts 
    m_applicationObject.DTE.ExecuteCommand("File.TfsResumeConflictResolution"); 
} 

感謝乍得博萊斯!那就說我關於TfsResumeConflictResolution DTE命令。

相關問題