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; }
public void _setChoosedItem(SideTabItem nSideTabItem) { if (null != mChoosedItem) { mChoosedItem._setSideTabItemStatus(SideTabItemStatus_.mNormal_); } mChoosedItem = nSideTabItem; if (null != mChoosedItem) { mChoosedItem._setSideTabItemStatus(SideTabItemStatus_.mChoosed_); } }
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_); } }
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_); } }