Пример #1
0
        /// <summary>
        /// To edit links.
        /// </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>
		/// To edit links.
		/// </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();
		}