コード例 #1
0
        public void FixtureSetUp()
        {
            TestClassHelper.Initialize(out this.application);

            this.secondTab = this.application.Window.TabItem2;
            this.secondTab.Select();
        }
コード例 #2
0
ファイル: FriendPanel.cs プロジェクト: zuojiashun/src
 private void InitFriendSecondTabs()
 {
     if (null == m_dicFriendTabGrid && null != m_trans_SecondTab)
     {
         m_dicFriendTabGrid = new Dictionary <SecondTab, UITabGrid>();
         UITabGrid tabGrid = null;
         for (SecondTab i = SecondTab.None + 1; i < SecondTab.Max; i++)
         {
             Transform ts = m_trans_SecondTab.Find(i.ToString());
             if (null == ts)
             {
                 continue;
             }
             tabGrid = ts.GetComponent <UITabGrid>();
             if (tabGrid == null)
             {
                 tabGrid = ts.gameObject.AddComponent <UITabGrid>();
             }
             if (tabGrid != null)
             {
                 tabGrid.TabID = (int)i;
                 tabGrid.SetHightLight(false);
                 if (!m_dicFriendTabGrid.ContainsKey(i))
                 {
                     m_dicFriendTabGrid.Add(i, tabGrid);
                     tabGrid.RegisterUIEventDelegate(OnFriendSecondTabsEvent);
                 }
             }
         }
     }
 }
コード例 #3
0
ファイル: FriendPanel.cs プロジェクト: zuojiashun/src
    private bool SetActiveFriendSecondTas(SecondTab tab, bool force = false)
    {
        if (m_SecondTab == tab && !force)
        {
            return(false);
        }
        m_SecondTab = tab;
        switch (m_SecondTab)
        {
        case SecondTab.Contacts:
            m_currRelationList = GameCmd.RelationType.Relation_Contact;
            break;

        case SecondTab.Interactive:
            m_currRelationList = GameCmd.RelationType.Relation_Interactive;
            break;

        case SecondTab.Friend:
            m_currRelationList = GameCmd.RelationType.Relation_Friend;
            break;

        case SecondTab.Enemy:
            m_currRelationList = GameCmd.RelationType.Relation_Enemy;
            break;

        case SecondTab.BlackList:
            m_currRelationList = GameCmd.RelationType.Relation_Black;
            break;

        default:
            break;
        }
        RefreshLeftListUI();
        return(true);
    }
コード例 #4
0
        public void DragObjectVertically()
        {
            Actions action = new Actions(this.Driver);

            SecondTab.Click();
            action.DragAndDropToOffset(this.DraggableObjectSecondTab, 50, 50);
            action.Perform();
        }
コード例 #5
0
        public void FixtureSetUp()
        {
            TestClassHelper.Initialize(out this.application);

            this.secondTab = this.application.MainWindow.TabItem2;

            this.secondTab.Select();
            Assert.IsTrue(this.secondTab.IsSelection);
        }
コード例 #6
0
 private void ClearColorsButton_Click(object sender, RoutedEventArgs e)
 {
     SecondTab.ClearValue(ForegroundProperty);
     SecondTab.ClearValue(BackgroundProperty);
 }
コード例 #7
0
 public void OpenSecondTab()
 {
     SecondTab.Click();
 }