private void Objects_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e) { foreach (AnnAutomationObject automationObject in e.NewItems) { UpdateAutomationObject(automationObject); } }
private void Objects_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e) { if (e.NewItems.Count > 0) { var toolBar = this.ToolBar; var index = -1; if (toolBar != null && toolBar.Buttons != null) { index = toolBar.Buttons.Count; } // Attach context menu, toolbar, cursor to the new automation objects... foreach (AnnAutomationObject automationObject in e.NewItems) { UpdateAutomationObject(automationObject); if (index >= 0) { AddObjectToToolBar(automationObject, index); } } } }
private void _automationContainers_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e) { Populate(); }
void Children_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e) { UpdateAll(); }
void Children_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e) { MainForm.UpdateControls(); }
private void CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e) { AutomationInvalidate(LeadRectD.Empty); }