void TabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e)
 {
     if (Tags.IndexOf(e.TabId.ToString()) == Tags.IndexOf(tabHost.CurrentTabTag))
     {
         Pager.SetCurrentItem(Tags.IndexOf(e.TabId.ToString()), true);
     }
 }
示例#2
0
        private void MyTabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e)
        {
            var tab = sender as TabHost;

            ViewModel.SetTab(tab.CurrentTab);
            ViewModel.CurrentStatisticViewModel.SetAttacks();
        }
示例#3
0
        void TabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e)
        {
            if (currentTabId == null || currentTabId == "airports")
            {
                TinyIoC.TinyIoCContainer.Current.Resolve <AirportsViewModel>().SaveCommand.Execute(null);
            }

            currentTabId = e.TabId;
        }
示例#4
0
 void TabHostHandleTabChanged(object sender, TabHost.TabChangeEventArgs e)
 {
     if (e.TabId.Equals("Monthly"))
     {
         PushFragments(statisticTabMonthly);
     }
     else if (e.TabId.Equals("By Date"))
     {
         PushFragments(statisticTabByDate);
     }
 }
示例#5
0
        void TabHost_TabChanged(object sender, TabHost.TabChangeEventArgs e)
        {
            TextView  tabTextHeader = FindViewById <TextView>(Resource.Id.tabTextHeader);
            ImageView imgflashicon  = FindViewById <ImageView>(Resource.Id.imgflashicon);
            TabHost   tb            = (TabHost)sender;

            if (e.TabId == "Manual")
            {
                tabTextHeader.SetText("Manual Entry Inventory", TextView.BufferType.Normal);
                imgflashicon.Visibility = ViewStates.Visible;
            }

            if (e.TabId == "Dictation")
            {
                tabTextHeader.SetText("Voice Dictation Inventory", TextView.BufferType.Normal);
                imgflashicon.Visibility = ViewStates.Visible;
            }
            if (e.TabId == "Barcode")
            {
                tabTextHeader.SetText("Barcode Entry Inventory", TextView.BufferType.Normal);
                imgflashicon.Visibility = ViewStates.Visible;
            }
            //return false;
        }
 private void TabHostOnTabChanged(object sender, TabHost.TabChangeEventArgs args)
 {
     OnTabChanged(args.TabId);
 }