コード例 #1
0
 private void SetDataToView()
 {
     if (App.Locator.AddSeekios.IsAdding)
     {
         ToolbarPage.SetTitle(Resource.String.addseekios_addSeekios);
         DeleteButton.Visibility               = ViewStates.Gone;
         BuySeekiosButton.Visibility           = ViewStates.Visible;
         NotificationTrackingSwitch.Visibility = ViewStates.Gone;
         NotificationZoneSwitch.Visibility     = ViewStates.Gone;
         NotificationDontModeSwitch.Visibility = ViewStates.Gone;
         (FindViewById <TextView>(Resource.Id.notificationNewLocationTracking_textView)).Visibility  = ViewStates.Gone;
         (FindViewById <TextView>(Resource.Id.notificationNewLocationOutOfZone_textView)).Visibility = ViewStates.Gone;
         (FindViewById <TextView>(Resource.Id.notificationNewLocationMoved_textView)).Visibility     = ViewStates.Gone;
     }
     else
     {
         ToolbarPage.SetTitle(Resource.String.addseekios_updateSeekios);
         DeleteButton.Visibility     = ViewStates.Visible;
         BuySeekiosButton.Visibility = ViewStates.Gone;
         SetSeekiosDataToView();
         NotificationTrackingSwitch.Checked = App.Locator.AddSeekios.UpdatingSeekios.SendNotificationOnNewTrackingLocation;
         NotificationZoneSwitch.Checked     = App.Locator.AddSeekios.UpdatingSeekios.SendNotificationOnNewOutOfZoneLocation;
         NotificationDontModeSwitch.Checked = App.Locator.AddSeekios.UpdatingSeekios.SendNotificationOnNewDontMoveLocation;
     }
 }
コード例 #2
0
        protected override void OnCreate(Bundle bundle)
        {
            SetContentView(Resource.Layout.AlertSOSLayout);
            base.OnCreate(bundle);

            GetObjectsFromView();
            SetDataToView();

            ToolbarPage.SetTitle(Resource.String.alertSOS_pagetitle);
            SetSupportActionBar(ToolbarPage);
            SupportActionBar.SetDisplayHomeAsUpEnabled(true);
        }
コード例 #3
0
        /// <summary>
        /// View creation
        /// </summary>
        protected override void OnCreate(Bundle bundle)
        {
            SetContentView(Resource.Layout.NeedUpdateActivity);
            base.OnCreate(bundle);

            GetObjectsFromView();

            if (ToolbarPage != null)
            {
                ToolbarPage.SetTitle(Resource.String.needUpdate_title);
                SetSupportActionBar(ToolbarPage);
                SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            }
        }
コード例 #4
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            SetContentView(Resource.Layout.ListTutorialLayout);
            base.OnCreate(savedInstanceState);

            GetObjectsFromView();
            SetDataToView();

            if (ToolbarPage != null)
            {
                ToolbarPage.SetTitle(Resource.String.listTutorial_title);
                SetSupportActionBar(ToolbarPage);
                SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            }
        }
コード例 #5
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);
            SetContentView(Resource.Layout.ReloadCreditLayout);

            GetObjectsFromView();
            SetDataToView();

            if (ToolbarPage != null)
            {
                ToolbarPage.SetTitle(Resource.String.reloadCredit_title);
                SetSupportActionBar(ToolbarPage);
                SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            }
            LoadInAppBilling();
        }
コード例 #6
0
        protected override void OnCreate(Bundle bundle)
        {
            SetContentView(Resource.Layout.ModeTrackingLayout);
            base.OnCreate(bundle);

            GetObjectsFromView();
            SetDataToView();

            if (ToolbarPage != null)
            {
                ToolbarPage.SetTitle(Resource.String.trackingConfiguration_title);
                SetSupportActionBar(ToolbarPage);
                SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            }

            PowerSavingSwitch.Checked = App.Locator.ModeTracking.TrackingSetting.IsPowerSavingEnabled;
            PowerSavingSwitchCheckedChanged(PowerSavingSwitch, null);
        }
コード例 #7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.ParameterLayout);

            GetObjectsFromView();
            SetDataToView();

            _cameraService = new CameraService(this);
            _connectionService.Initialize(this, ConnectivityService);

            if (ToolbarPage != null)
            {
                ToolbarPage.SetTitle(Resource.String.parameter_actionBarTitle);
                SetSupportActionBar(ToolbarPage);
                SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            }
        }
コード例 #8
0
        protected override void OnCreate(Bundle bundle)
        {
            SetContentView(Resource.Layout.AlertLayout);
            base.OnCreate(bundle);

            GetObjectsFromView();
            SetDataToView();

            if (ToolbarPage != null)
            {
                ToolbarPage.SetTitle(Resource.String.alert_title);
                SetSupportActionBar(ToolbarPage);
                SupportActionBar.SetDisplayHomeAsUpEnabled(true);
            }
            if (App.Locator.ModeZone.EditingAlerts)
            {
                DeleteButton.Visibility = ViewStates.Visible;
            }
        }
コード例 #9
0
 private void SetDataToView()
 {
     LoadingLayout.Visibility = ViewStates.Visible;
     ToolbarPage.SetTitle(Resource.String.reloadCredit_title);
 }