Ejemplo n.º 1
0
 private void _applicationBar_ButtonPressed(ApplicationBar source, ApplicationBar.Item button)
 {
     // purpose here is to set ActivePlugin to current Plugin visible in application bar
     // current taskpane on application bar is current active view
     if (_applicationBar.ApplicationBarControl != null)
     {
         TaskPane pane = (TaskPane)_applicationBar.ApplicationBarControl;
         foreach (Control control in PluginBindings.Values)
         {
             if (pane == control)
             {
                 foreach (IApplicationBlock block in PluginBindings.Keys)
                 {
                     if (PluginBindings[block] == control)
                     {
                         ActiveBlock = block;
                         break;
                     }
                 }
                 break;
             }
         }
     }
 }
Ejemplo n.º 2
0
 protected void FireButtonPressedEvent(ApplicationBar source, ApplicationBar.Item button)
 {
     OnButtonPressed(source, button);
     ButtonPressed?.Invoke(source, button);
 }
Ejemplo n.º 3
0
 protected virtual void OnButtonPressed(ApplicationBar source, ApplicationBar.Item button)
 {
 }