private void Objects_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e)
 {
     foreach (AnnAutomationObject automationObject in e.NewItems)
     {
         UpdateAutomationObject(automationObject);
     }
 }
Exemplo n.º 2
0
        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();
 }
Exemplo n.º 4
0
 void Children_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e)
 {
     UpdateAll();
 }
Exemplo n.º 5
0
 void Children_CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e)
 {
     MainForm.UpdateControls();
 }
Exemplo n.º 6
0
 private void CollectionChanged(object sender, AnnNotifyCollectionChangedEventArgs e)
 {
     AutomationInvalidate(LeadRectD.Empty);
 }