Beispiel #1
0
        public SideTab()
        {
            mMemberStreams = new List<MemberStream>();
            mSideTabItems = new List<SideTabItem>();

            mPointItem = new SideTabItem();
            mPointItem._setName(@"选择");
            mPointItem._setId(@"selectPointor");
            mPointItem._setMail("*****@*****.**");
            mPointItem._setSideTabItemStatus(SideTabItemStatus_.mChoosed_);
            string imageUrl_ = @"rid://window.optimal.selectImageUrl";
            mPointItem._setImageUrl(imageUrl_);
            mSideTabItems.Add(mPointItem);

            mSideTabStatus = SideTabStatus_.mNormal_;
            mSideTabImageUrl = null;
            mSideTabImage = null;
            mSelectedItem = null;
            mChoosedItem = mPointItem;
            mSideTabName = null;
            mScrollIndex = 0;
            mVisible = true;
            mSideBar = null;
        }
Beispiel #2
0
 public void _setChoosedItem(SideTabItem nSideTabItem)
 {
     if (null != mChoosedItem)
     {
         mChoosedItem._setSideTabItemStatus(SideTabItemStatus_.mNormal_);
     }
     mChoosedItem = nSideTabItem;
     if (null != mChoosedItem)
     {
         mChoosedItem._setSideTabItemStatus(SideTabItemStatus_.mChoosed_);
     }
 }
Beispiel #3
0
 public void _setSelectedItem(SideTabItem nSideTabItem)
 {
     if (null != mSelectedItem && mSelectedItem != mChoosedItem)
     {
         mSelectedItem._setSideTabItemStatus(SideTabItemStatus_.mNormal_);
     }
     mSelectedItem = nSideTabItem;
     if (null != mSelectedItem && mSelectedItem != mChoosedItem)
     {
         mSelectedItem._setSideTabItemStatus(SideTabItemStatus_.mSelected_);
     }
 }
Beispiel #4
0
 public void _setChoosedItem(SideTabItem nSideTabItem)
 {
     if (null != mChoosedItem)
     {
         mChoosedItem._setSideTabItemStatus(SideTabItemStatus_.mNormal_);
     }
     if (null == nSideTabItem)
     {
         mChoosedItem = mPointItem;
     }
     else
     {
         mChoosedItem = nSideTabItem;
     }
     if (null != mChoosedItem)
     {
         mChoosedItem._setSideTabItemStatus(SideTabItemStatus_.mChoosed_);
     }
 }