I'm using a VS extension that has the option of merging changesets. This extension opens the 'Resolve conflicts' window if conflicts are detect, allowing me to choose 'Merge automatically' (disabled), 'Merge in merge tool', 'Take source, 'Take target' etc.
The problem is that the window is modal. So if I want to view the merge in the default merge tool, it opens the comparison as a tabbed window behind the 'Resolve conflicts' window.
The code that opens the Resolve conflicts window is this:
try
{
Assembly assres = Assembly.GetAssembly(typeof(ControlAddItemsExclude));
var dlgResolveConflicts = assres.GetTypes().FirstOrDefault(x => x.Name == "DialogResolveConflicts");
dlgResolveConflicts.InvokeMember("ResolveConflicts", BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Static, null, null, new object[] { wrkspc, null, true, null });
}
catch(Exception ex)
{
Utilities.OutputCommandString(ex.ToString());
MessageBox.Show(ex.ToString());
}
Can you guys help me open the 'Resolve conflicts' window in a modeless fashion, so I can interact with the merge comparison tool?
Kind regards, Asser Fahrenholz