private void OnSelectedItemChanged(TabSelectedEventArgs arg) { if (this.SelectedItemChanged != null) { this.SelectedItemChanged(this, arg); } }
void TabSelected(object sender, EventArgs e) { TabButton t = sender as TabButton; for (int i = 0; i < this._tabList.Count; i++) { if (!this._tabList[i].Equals(t)) { this._tabList[i].State = TabState.Deactivated; } else { TabSelectedEventArgs args = new TabSelectedEventArgs(i, t); OnSelectedItemChanged(args); } } this._activedTabStack.Push(t); }
void TabBarSelectedItemChanged(object sender, TabSelectedEventArgs e) { this.SelectTab(e.Index); }
void TabSelected(object sender, EventArgs e) { TabButton t = sender as TabButton; for (int i = 0; i < this._tabList.Count; i++) { if (!this._tabList[i].Equals(t)) { this._tabList[i].State = TabState.Deactivated; }else { TabSelectedEventArgs args = new TabSelectedEventArgs(i,t); OnSelectedItemChanged(args); } } this._activedTabStack.Push(t); }
private void OnSelectedItemChanged(TabSelectedEventArgs arg) { if (this.SelectedItemChanged != null) { this.SelectedItemChanged(this, arg); } }
void TabBarSelectedItemChanged(object sender, TabSelectedEventArgs e) { this.SelectTab(e.Index); }