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