예제 #1
0
        //###################################################################################

        private void SPINNER_TIME_ItemSelected(object sender, AdapterView.ItemSelectedEventArgs e)
        {
            if ((e.Position >= 0) && (e.Position < listSpinnerIntervalValues.Count))
            {
                var interval = listSpinnerIntervalValues[e.Position];

                TBL.UpdateSyncInterval(interval);

                JobSchedulerHelper.CreateSyncJob(this, TBL.GetSyncIntervalSettingDescriptor(this, interval).Timespan);
            }
        }
예제 #2
0
        //#############################################################################

        protected override void OnResume()
        {
            base.OnResume();

            //Statischen Speicher erstellen
            InitRoutine(this);

            //Job erstellen
            JobSchedulerHelper.CreateSyncJob(this, TBL.GetSyncIntervalSettingDescriptor(this, TBL.SyncInterval).Timespan);

            //App starten
            StartActivity(new Intent(Application.Context, typeof(Activity_Main)));
        }