當前位置: 首頁>>代碼示例>>C#>>正文


C# ComponentModel.CollectionChangeEventArgs類代碼示例

本文整理匯總了C#中System.ComponentModel.CollectionChangeEventArgs的典型用法代碼示例。如果您正苦於以下問題:C# CollectionChangeEventArgs類的具體用法?C# CollectionChangeEventArgs怎麽用?C# CollectionChangeEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CollectionChangeEventArgs類屬於System.ComponentModel命名空間,在下文中一共展示了CollectionChangeEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Remove

 protected internal void Remove(Binding binding)
 {
     CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Remove, binding);
     this.OnCollectionChanging(e);
     this.RemoveCore(binding);
     this.OnCollectionChanged(e);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:BindingsCollection.cs

示例2: OnCollectionChanged

 protected virtual void OnCollectionChanged(CollectionChangeEventArgs ccevent)
 {
     if (this.onCollectionChanged != null)
     {
         this.onCollectionChanged(this, ccevent);
     }
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:BindingsCollection.cs

示例3: OnCollectionChanging

 protected virtual void OnCollectionChanging(CollectionChangeEventArgs e)
 {
     if (this.onCollectionChanging != null)
     {
         this.onCollectionChanging(this, e);
     }
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:BindingsCollection.cs

示例4: Add

 protected internal void Add(Binding binding)
 {
     CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Add, binding);
     this.OnCollectionChanging(e);
     this.AddCore(binding);
     this.OnCollectionChanged(e);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:BindingsCollection.cs

示例5: Clear

 protected internal void Clear()
 {
     CollectionChangeEventArgs e = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null);
     this.OnCollectionChanging(e);
     this.ClearCore();
     this.OnCollectionChanged(e);
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:BindingsCollection.cs

示例6: ClearCore

		protected virtual void ClearCore() 
		{
			CollectionChangeEventArgs args = new CollectionChangeEventArgs(CollectionChangeAction.Refresh, null);
			OnCollectionChanging (args);
			base.List.Clear();
			OnCollectionChanged (args);
		}
開發者ID:KonajuGames,項目名稱:SharpLang,代碼行數:7,代碼來源:BindingsCollection.cs

示例7: OnCollectionChanged

 protected void OnCollectionChanged(CollectionChangeEventArgs e)
 {
     if (this.onCollectionChanged != null)
     {
         this.onCollectionChanged(this, e);
     }
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:7,代碼來源:AutoCompleteStringCollection.cs

示例8: DataBindingsCollectionChanged

 private void DataBindingsCollectionChanged(object sender, CollectionChangeEventArgs e)
 {
     System.Windows.Forms.Control component = base.Component as System.Windows.Forms.Control;
     if (component != null)
     {
         if ((component.DataBindings.Count == 0) && this.removalNotificationHooked)
         {
             IComponentChangeService service = (IComponentChangeService) this.GetService(typeof(IComponentChangeService));
             if (service != null)
             {
                 service.ComponentRemoved -= new ComponentEventHandler(this.DataSource_ComponentRemoved);
             }
             this.removalNotificationHooked = false;
         }
         else if ((component.DataBindings.Count > 0) && !this.removalNotificationHooked)
         {
             IComponentChangeService service2 = (IComponentChangeService) this.GetService(typeof(IComponentChangeService));
             if (service2 != null)
             {
                 service2.ComponentRemoved += new ComponentEventHandler(this.DataSource_ComponentRemoved);
             }
             this.removalNotificationHooked = true;
         }
     }
 }
開發者ID:pritesh-mandowara-sp,項目名稱:DecompliedDotNetLibraries,代碼行數:25,代碼來源:ControlDesigner.cs

示例9: OnCollectionChanged

		protected void OnCollectionChanged (CollectionChangeEventArgs e)
		{
			if(CollectionChanged == null)
				return;

			CollectionChanged (this, e);
		}
開發者ID:KonajuGames,項目名稱:SharpLang,代碼行數:7,代碼來源:AutoCompleteStringCollection.cs

示例10: OnCollectionChanged

 protected virtual void OnCollectionChanged(CollectionChangeEventArgs e)
 {
     if (onCollectionChanged != null)
     {
         onCollectionChanged(this, e);
     }
 }
開發者ID:BachelorEric,項目名稱:ModelFirst,代碼行數:7,代碼來源:FilterColumn.cs

示例11: ObjectStateManager_ObjectStateManagerChanged

		private void ObjectStateManager_ObjectStateManagerChanged(Object sender, CollectionChangeEventArgs e) {
			if(e.Action == CollectionChangeAction.Add) {
				if(e.Element is Event) {
					((Event)e.Element).objectContext = objectContext;
				}
			}
		}
開發者ID:paulute,項目名稱:eXpand,代碼行數:7,代碼來源:EFDemoDbContext.cs

示例12: OnUIAGridCellChanged

		private void OnUIAGridCellChanged (object sender, CollectionChangeEventArgs args)
		{
			SWF.DataGridCell cell = (SWF.DataGridCell) args.Element;
			if (cell.ColumnNumber == editProvider.ItemProvider.GetColumnIndexOf (editProvider)
			    && cell.RowNumber == editProvider.ItemProvider.Index)
				RaiseAutomationPropertyChangedEvent ();
		}
開發者ID:mono,項目名稱:uia2atk,代碼行數:7,代碼來源:DataItemEditValuePatternValueEvent.cs

示例13: AddCore

		protected virtual void AddCore (Binding dataBinding) 
		{
			CollectionChangeEventArgs args = new CollectionChangeEventArgs (CollectionChangeAction.Add, dataBinding);
			OnCollectionChanging (args);
			base.List.Add(dataBinding);
			OnCollectionChanged (args);
		}
開發者ID:KonajuGames,項目名稱:SharpLang,代碼行數:7,代碼來源:BindingsCollection.cs

示例14: OnElementSelectedEvent

		private void OnElementSelectedEvent (object sender, CollectionChangeEventArgs args)
		{
			ListItemProvider provider = (ListItemProvider) Provider;
			
			if (provider.ListProvider.SelectedItemsCount == 1
			    && provider.ListProvider.IsItemSelected (provider))
				RaiseAutomationEvent ();
		}
開發者ID:mono,項目名稱:uia2atk,代碼行數:8,代碼來源:DataItemSelectionItemPatternElementSelectedEvent.cs

示例15: ColumnCollectionChanged

 private void ColumnCollectionChanged(object sender, CollectionChangeEventArgs e) {
     DataView dv = (DataView)_dvWeak.Target;
     if (dv != null) {
         dv.ColumnCollectionChangedInternal(sender, e);
     }
     else {
         CleanUp(true);
     }
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:9,代碼來源:DataViewListener.cs


注:本文中的System.ComponentModel.CollectionChangeEventArgs類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。