private AttachToWacProcessDialogModel ShowWacProcessesList() { var model = new AttachToWacProcessDialogModel(this); var window = new AttachToWacProcessDialog(model); var result = ShowDialog(window); return(result.GetValueOrDefault() ? model : null); }
private AttachToWacProcessDialogModel ShowWacProcessesList() { var connectionTypes = new List <string>(); foreach (Transport transport in ((Debugger2)_dte.Debugger).Transports) { connectionTypes.Add(transport.Name); } var model = new AttachToWacProcessDialogModel(this, connectionTypes); var window = new AttachToWacProcessDialog(model); var result = ShowDialog(window); return(result.GetValueOrDefault() ? model : null); }