internal void OnTabChanged(TabWidget tab, bool value) { OnValueChanged(tab.index, value); if (value) { DoTabOn(tab); } }
void DoTabOn(TabWidget tab) { for (int i = 0; i < tabs.Length; i++) { var temp = tabs[i]; if (temp != tab) { temp.DoChanged(false); } else { temp.DoChanged(true); } } }