Example #1
0
 private void Control_PageChanged(object sender, PageChangedEventArgs e)
 {
     if (SelectionService != null)
     {
         SelectionService.SetSelectedComponents(new object[] { Control.SelectedTab });
     }
 }
Example #2
0
 private void Control_PageChanged(object sender, PageChangedEventArgs e)
 {
     if (SelectionService != null)
     {
         if (e.CurrentPage != null)
         {
             SelectionService.SetSelectedComponents(new object[] { e.CurrentPage });
         }
         else
         {
             SelectionService.SetSelectedComponents(new object[] { Control });
         }
     }
 }
Example #3
0
 /// <summary>
 /// Raises the <see cref="PageChanged"/> event.
 /// </summary>
 /// <param name="e">A <see cref="PageChangedEventArgs"/> that contains event data.</param>
 protected internal virtual void OnPageChanged(PageChangedEventArgs e)
 {
     PageChanged?.Invoke(this, e);
 }
Example #4
0
 /// <summary>
 /// Updates verbs and toolbar buttons when the current page is changed.
 /// </summary>
 private void Control_CurrentPageChanged(object sender, PageChangedEventArgs e)
 {
     UpdateGlyphsAndVerbs();
 }