/// <summary>
		/// Creates a <see cref="NotifyDocumentTreeViewCollection.Remove"/> instance
		/// </summary>
		/// <param name="documents">Removed documents</param>
		/// <returns></returns>
		public static NotifyDocumentTreeViewCollectionChangedEventArgs CreateRemove(DsDocumentNode[] documents) {
			Debug.Assert(documents != null);
			var e = new NotifyDocumentTreeViewCollectionChangedEventArgs();
			e.Type = NotifyDocumentTreeViewCollection.Remove;
			e.Nodes = documents;
			return e;
		}
		/// <summary>
		/// Creates a <see cref="NotifyDocumentTreeViewCollection.Add"/> instance
		/// </summary>
		/// <param name="document">Added document</param>
		/// <returns></returns>
		public static NotifyDocumentTreeViewCollectionChangedEventArgs CreateAdd(DsDocumentNode document) {
			Debug.Assert(document != null);
			var e = new NotifyDocumentTreeViewCollectionChangedEventArgs();
			e.Type = NotifyDocumentTreeViewCollection.Add;
			e.Nodes = new DsDocumentNode[] { document };
			return e;
		}
		/// <summary>
		/// Creates a <see cref="NotifyDocumentTreeViewCollection.Clear"/> instance
		/// </summary>
		/// <param name="clearedDocuments">All cleared documents</param>
		/// <returns></returns>
		public static NotifyDocumentTreeViewCollectionChangedEventArgs CreateClear(DsDocumentNode[] clearedDocuments) {
			Debug.Assert(clearedDocuments != null);
			var e = new NotifyDocumentTreeViewCollectionChangedEventArgs();
			e.Type = NotifyDocumentTreeViewCollection.Clear;
			e.Nodes = clearedDocuments;
			return e;
		}
コード例 #4
0
        /// <summary>
        /// Creates a <see cref="NotifyDocumentTreeViewCollection.Remove"/> instance
        /// </summary>
        /// <param name="documents">Removed documents</param>
        /// <returns></returns>
        public static NotifyDocumentTreeViewCollectionChangedEventArgs CreateRemove(IDsDocumentNode[] documents)
        {
            Debug.Assert(documents != null);
            var e = new NotifyDocumentTreeViewCollectionChangedEventArgs();

            e.Type  = NotifyDocumentTreeViewCollection.Remove;
            e.Nodes = documents;
            return(e);
        }
コード例 #5
0
        /// <summary>
        /// Creates a <see cref="NotifyDocumentTreeViewCollection.Add"/> instance
        /// </summary>
        /// <param name="document">Added document</param>
        /// <returns></returns>
        public static NotifyDocumentTreeViewCollectionChangedEventArgs CreateAdd(IDsDocumentNode document)
        {
            Debug.Assert(document != null);
            var e = new NotifyDocumentTreeViewCollectionChangedEventArgs();

            e.Type  = NotifyDocumentTreeViewCollection.Add;
            e.Nodes = new IDsDocumentNode[] { document };
            return(e);
        }
コード例 #6
0
        /// <summary>
        /// Creates a <see cref="NotifyDocumentTreeViewCollection.Clear"/> instance
        /// </summary>
        /// <param name="clearedDocuments">All cleared documents</param>
        /// <returns></returns>
        public static NotifyDocumentTreeViewCollectionChangedEventArgs CreateClear(IDsDocumentNode[] clearedDocuments)
        {
            Debug.Assert(clearedDocuments != null);
            var e = new NotifyDocumentTreeViewCollectionChangedEventArgs();

            e.Type  = NotifyDocumentTreeViewCollection.Clear;
            e.Nodes = clearedDocuments;
            return(e);
        }