Пример #1
0
 void ISetTabButtonItemHelper.SetIsSelected(bool bIsSelected)
 {
     if (bIsSelected == this.IsSelected)
     {
         return;
     }
     //
     m_IsSelected = bIsSelected;
     if (this.pTabPageItem != null)
     {
         ISetTabPageItemHelper pSetTabPageItemHelper = this.pTabPageItem as ISetTabPageItemHelper;
         if (pSetTabPageItemHelper != null)
         {
             pSetTabPageItemHelper.SetIsSelected(bIsSelected);
         }
     }
     //
     this.Refresh();
 }
Пример #2
0
 void ISetTabButtonItemHelper.SetIsSelected(bool bIsSelected)
 {
     //Console.WriteLine(this.IsSelected.ToString() + " - " + bIsSelected + " - " + this.m_pTabPageItem.Visible);
     if (this.IsSelected == bIsSelected && this.IsSelected == this.m_pTabPageItem.Visible)
     {
         return;
     }
     //
     this.m_IsSelected = bIsSelected;
     if (this.pTabPageItem != null)
     {
         ISetTabPageItemHelper pSetTabPageItemHelper = this.pTabPageItem as ISetTabPageItemHelper;
         if (pSetTabPageItemHelper != null)
         {
             pSetTabPageItemHelper.SetIsSelected(bIsSelected);
         }
     }
     this.OnTabButtonActiveChanged(new BoolValueChangedEventArgs(bIsSelected));
     //
     this.Refresh();
 }