Beispiel #1
0
 private void Control_PageChanged(object sender, PageChangedEventArgs e)
 {
     if (SelectionService != null)
     {
         SelectionService.SetSelectedComponents(new object[] { Control.SelectedTab });
     }
 }
Beispiel #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 });
         }
     }
 }
Beispiel #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);
 }
Beispiel #4
0
 /// <summary>
 /// Updates verbs and toolbar buttons when the current page is changed.
 /// </summary>
 private void Control_CurrentPageChanged(object sender, PageChangedEventArgs e)
 {
     UpdateGlyphsAndVerbs();
 }