/// <summary> /// Редактировать ссылки. /// </summary> public void EditReferences() { var window = new CodeReferencesWindow(); window.References.AddRange(References); if (!window.ShowModal(this)) { return; } var toAdd = window.References.Except(References); var toRemove = References.Except(window.References); References.RemoveRange(toRemove); References.AddRange(toAdd); ReferencesUpdated.SafeInvoke(); }
/// <summary> /// Редактировать ссылки. /// </summary> public void EditReferences() { var window = new CodeReferencesWindow(); window.References.AddRange(References); if (!window.ShowModal(this)) return; var toAdd = window.References.Except(References); var toRemove = References.Except(window.References); References.RemoveRange(toRemove); References.AddRange(toAdd); ReferencesUpdated.SafeInvoke(); }