Пример #1
0
		public DataGetter()
		{
			StringEventHandler = new StringEventFirer();

			the_past = stringToDate("1984/09/02 12:34 pm");
			GoGoGadget();
		}
Пример #2
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            SetContentView(Resource.Layout.TimeTable);

            TimeColumns = new List<TextView>(16);

            foreach (string day in new string[] {"Today","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"})
                TabHost.AddTab(NewTab(day));

            //magical tab jumping to actually create the content in the tabs #lolandroid
            TabHost.CurrentTab = 0;
            TabHost.CurrentTab = 1;
            TabHost.CurrentTab = 2;
            TabHost.CurrentTab = 3;
            TabHost.CurrentTab = 4;
            TabHost.CurrentTab = 5;
            TabHost.CurrentTab = 6;
            TabHost.CurrentTab = 7;
            TabHost.CurrentTab = 8;
            TabHost.CurrentTab = 0;

            loadingBar = FindViewById<ProgressBar>(Resource.Id.progressBar1);
            loadingBar.Indeterminate = true;

            TodayDepartStringEventFirer = DataGetter.StringEventHandler;
            if (DataGetter.StringEventHandler != null)
                DataGetter.StringEventHandler.Changed += new StringEventFirer.ChangedEventHandler(TimetableStringChanged);
        }
Пример #3
0
        public DataGetter()
        {
            StringEventHandler = new StringEventFirer();

            the_past = stringToDate("1984/09/02 12:34 pm");
            GoGoGadget();
        }
Пример #4
0
        public TimetableList()
        {
            InitializeComponent();

            TimeColumns = new List<TextBlock>(16);
            TimeColumns.Add(TodayDepartColumn);
            TimeColumns.Add(TodayArriveColumn);
            TimeColumns.Add(MondayDepartColumn);
            TimeColumns.Add(MondayArriveColumn);
            TimeColumns.Add(TuesdayDepartColumn);
            TimeColumns.Add(TuesdayArriveColumn);
            TimeColumns.Add(WednesdayDepartColumn);
            TimeColumns.Add(WednesdayArriveColumn);
            TimeColumns.Add(ThursdayDepartColumn);
            TimeColumns.Add(ThursdayArriveColumn);
            TimeColumns.Add(FridayDepartColumn);
            TimeColumns.Add(FridayArriveColumn);
            TimeColumns.Add(SaturdayDepartColumn);
            TimeColumns.Add(SaturdayArriveColumn);
            TimeColumns.Add(SundayDepartColumn);
            TimeColumns.Add(SundayArriveColumn);
            TodayDepartStringEventFirer = DataGetter.StringEventHandler;
            DataGetter.StringEventHandler.Changed += new StringEventFirer.ChangedEventHandler(TodayDepartStringChanged);
        }