public void FixtureSetUp() { TestClassHelper.Initialize(out this.application); this.secondTab = this.application.Window.TabItem2; this.secondTab.Select(); }
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); } } } } }
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); }
public void DragObjectVertically() { Actions action = new Actions(this.Driver); SecondTab.Click(); action.DragAndDropToOffset(this.DraggableObjectSecondTab, 50, 50); action.Perform(); }
public void FixtureSetUp() { TestClassHelper.Initialize(out this.application); this.secondTab = this.application.MainWindow.TabItem2; this.secondTab.Select(); Assert.IsTrue(this.secondTab.IsSelection); }
private void ClearColorsButton_Click(object sender, RoutedEventArgs e) { SecondTab.ClearValue(ForegroundProperty); SecondTab.ClearValue(BackgroundProperty); }
public void OpenSecondTab() { SecondTab.Click(); }