public override void OnActivityCreated(Bundle savedInstanceState)
 {
     base.OnActivityCreated(savedInstanceState);
     FindViews();
     HandleEvents();
     HotDogs          = HotDogDataService.GetFavoriteHotDogs();
     ListView.Adapter = new HotDogListAdapter(Activity, HotDogs);
 }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.HotDogDetailView);
            HotDogDataService dataService = new HotDogDataService();

            selectedHotDog = dataService.GetHotDogByID(1);


            FindViews();
            BindData();
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.HotDogMenuView);
            hotDogListView                   = FindViewById <ListView>(Resource.Id.hotDogListView);
            hotDogDataService                = new HotDogDataService();
            allHotDogs                       = hotDogDataService.GetAllHotDogs();
            hotDogListView.Adapter           = new HotDogListAdapter(this, allHotDogs);
            hotDogListView.FastScrollEnabled = true;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.HotDogDetailView);

            mHotDogDataService = new HotDogDataService();
            mSelectedHotDog = mHotDogDataService.GetHotDogById(1);

            FindViews();
            BindData();
            HandleEvents();

        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.HotDogDetailView);
            _dataService = new HotDogDataService();
            int hotDogId = Intent.Extras.GetInt("selectedHotDogId");

            _selectedHotDog = _dataService.GetHotDogById(hotDogId);
            FindViews();
            BindData();
            HandleEvents();
            // Create your application here
        }
Esempio n. 6
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.HotDogDetailView);

            dataService    = new HotDogDataService();
            selectedHotDog = dataService.GetHotDogById(1);

            // Create your application here
            FindViews();
            BindData();
            HandleEvents();
        }
Esempio n. 7
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.HotDogMenuView);

            ActionBar.NavigationMode = ActionBarNavigationMode.Tabs;
            HotDogDataService        = new HotDogDataService();

            AddTab("Favorites", Resource.Drawable.FavoritesIcon, new FavoriteHotDogFragment());
            AddTab("Meat Lovers", Resource.Drawable.MeatLoversIcon, new MeatLoversFragment());
            AddTab("Veggie Lovers", Resource.Drawable.veggieloversicon, new VeggieLoversFragment());
        }
Esempio n. 8
0
        private void backupForListView()
        {
            hotDogListView = FindViewById <ListView>(Resource.Id.hotDogListView);

            hotDogDataService = new HotDogDataService();

            allHotDogs = hotDogDataService.GetAllHotDogs();

            hotDogListView.Adapter = new HotDogListAdapter(this, allHotDogs);

            hotDogListView.FastScrollEnabled = true;

            hotDogListView.ItemClick += HotDogListView_ItemClick;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.HotDogDetailView);

            HotDogDataService dataService = new HotDogDataService();
            var selectedHotDogId          = Intent.Extras.GetInt("selectedHotDogId");

            selectedHotDog = dataService.GetHotDogById(selectedHotDogId);

            FindViews();
            BindData();
            HandleEvents();
        }
Esempio n. 10
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            Window.SetSoftInputMode(SoftInput.StateAlwaysHidden);
            SetContentView(Resource.Layout.HotDogDetailsView);

            var hotDogId = Intent.Extras.GetInt("hotDogId");

            _dataService    = new HotDogDataService();
            _selectedHotDog = _dataService.GetHotDogById(hotDogId);

            FindViews();
            BindData();
            HandleEvents();
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.HotDogMenuView);

            mListViewHotDog = FindViewById<ListView>(Resource.Id.list_view_hot_dog);

            mHotDogDataService = new HotDogDataService();

            mAllHotDogs = mHotDogDataService.GetAllHotDogs();

            mListViewHotDog.Adapter = new HotDogListAdapter(this, mAllHotDogs);

            // Enable fast scrolling just in case the list grows long.
            mListViewHotDog.FastScrollEnabled = true;
        }
Esempio n. 12
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            RequestWindowFeature(WindowFeatures.NoTitle);
            SetContentView(Resource.Layout.HotDogDetailView);

            HotDogDataService dataService = new HotDogDataService();

            var selectedHotDogId = Intent.Extras.GetInt("selectedHotDogId"); //Get Int from the calling activity (HotDogId)

            selectedHotDog = dataService.GetHotDogById(selectedHotDogId);    //get HotDog object by Id

            FindViews();
            BindData();
            HandleEvents();
        }
Esempio n. 13
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            SetContentView(Resource.Layout.HotDogMenuView);          //Reference the layout (.axml)
            ActionBar.NavigationMode = ActionBarNavigationMode.Tabs; //set this activity to a tab layout

            //hotDogListView = FindViewById<ListView>(Resource.Id.hotDogListView); //get reference to control
            hotDogDataService = new HotDogDataService();
            allHotDogs        = hotDogDataService.GetAllHotDogs(); //returns list of all available hotdogs
            //hotDogListView.Adapter = new HotDogListAdapter(this, allHotDogs);
            //hotDogListView.FastScrollEnabled = true;
            //hotDogListView.ItemClick += HotDogListView_ItemClick;
            AddTab("Favorites", Resource.Drawable.icon1, new FavoriteHotDogFragment());
            AddTab("Meat Lovers", Resource.Drawable.icon2, new MeatLoversHotDogFragment());
            AddTab("Veggie Lovers", Resource.Drawable.icon3, new VeggieHotDogFragment());
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here

            SetContentView(Resource.Layout.HotDogDetailView);

            DataService = new HotDogDataService();
            var selectedHotDogId = Intent.GetIntExtra("SelectedHotDogId", 0);

            SelectedHotDog = DataService.GetHotDogById(selectedHotDogId);

            FindViews();
            BindData();
            HandleEvents();
        }
Esempio n. 15
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            //set view
            SetContentView(Resource.Layout.HotDogDetailView);

            //instantiate data
            dataService    = new HotDogDataService();
            selectedHotDog = dataService.GetHotDogById(1);

            //get all the controls
            FindControls();
            BindData();
            HandleEvents();
        }
Esempio n. 16
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);

            // Create your application here
            SetContentView(Resource.Layout.HotDogMenuView);

            //set the list view
            hotDogListView = FindViewById <ListView>(Resource.Id.hotDogListView);

            //instatiate the hotdogdataservice
            hotDogDataService = new HotDogDataService();

            //get all htodogs
            allHotDogs = hotDogDataService.GetAllHotDogs();

            //hotdog menu adapter
            //pass in current activity(this) and all hotdogs list
            hotDogListView.Adapter = new HotDogListAdapter(this, allHotDogs);

            hotDogListView.FastScrollEnabled = true;
        }
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource

            SetContentView(Resource.Layout.HotDogDetailView);

            //navigation demos
            var selectedHotDogId = Intent.Extras.GetInt("selectedHotDogId");

            dataService    = new HotDogDataService();
            selectedHotDog = dataService.GetHotDogById(selectedHotDogId);

            FindViews();

            BindData();

            HandleEvents();

            //Track Event
            //Analytics.TrackEvent("Opened detail", new Dictionary<string, string> { { "HotDog", selectedHotDog.Name }});
        }
        public HotDogDetailViewController(IntPtr handle) : base(handle)
        {
            HotDogDataService hotDogDataService = new HotDogDataService();

            SelectedHotDog = hotDogDataService.GetHotDogById(1);
        }
        public HotDogDetail2ViewController(IntPtr handle) : base(handle)
        {
            HotDogDataService hddService = new HotDogDataService();

            selected = hddService.GetHotDogById(1);
        }
Esempio n. 20
0
 public BaseFragment()
 {
     hotDogdataService = new HotDogDataService();
 }
Esempio n. 21
0
 public HotDogDetailActivity()
 {
     _dataService = new HotDogDataService();
 }
Esempio n. 22
0
 public HotDogMenuActivity()
 {
     _dataService = new HotDogDataService();
 }
Esempio n. 23
0
 public BaseFragment()
 {
     hotDogDataService = new HotDogDataService();
     hotDogs           = hotDogDataService.GetAllHotDogs();
 }