using Foundation;
using System;
using UIKit;
using System.Collections.Generic;
using Shopping.DemoApp.iOS.Extensions;

namespace Shopping.DemoApp.iOS.Thanhvien.GT
{
    public partial class TVGTViewController : UIViewController
    { 
		 
		public TVGTViewController(IntPtr handle) : base (handle)
        {
			
		}

		public override void ViewDidLoad()
		{
			base.ViewDidLoad();

			this.AddDefaultNavigationTitle();
			CustomizeNavigationBar();

			TabBarItem.BadgeValue = "3";

			//GTTableView.TableHeaderView = FilterGTView;

			//declare some fruit
			Product apple = new Product() { Id = 1, Name = "Apple" };
			Product orange = new Product() { Id = 2, Name = "Orange" };
			Product pineapple = new Product() { Id = 3, Name = "Pineapple" };
			Product kiwi = new Product() { Id = 4, Name = "Kiwi" };
 
		} 
		 

		 
		private void CustomizeNavigationBar()
		{
			
			NavigationController.NavigationBar.Translucent = false;
			NavigationController.NavigationBar.BarTintColor = new UIColor(69 / 255f, 152 / 255f, 54 / 255f, 1);
			NavigationController.NavigationBar.TintColor = UIColor.White;
			NavigationController.NavigationBar.ShadowImage = new UIImage();
			NavigationController.NavigationBar.SetBackgroundImage(new UIImage(), UIBarMetrics.Default);

			NavigationController.NavigationBar.TitleTextAttributes = new UIStringAttributes()
			{
				ForegroundColor = UIColor.White
			};
		} 
          
	}
}