예제 #1
0
        /// <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();
        }
예제 #2
0
		/// <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();
		}