Esempio n. 1
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            View view = inflater.Inflate(Resource.Layout.CustomerDetails, container, false);

            viewCust = view;

            InitActionBar();

            view.FindViewById <FrameLayout>(Resource.Id.realtabcontent).Visibility = ViewStates.Gone;

            customer = CustomerInfo.GetCustomer(Activity, this.ObjectId);

            tbCustCode = (TextView)view.FindViewById(Resource.Id.tbCustomerCode);
            tbCustName = (TextView)view.FindViewById(Resource.Id.tbCustomerName);

            tbCustCode.Text = customer.Code;
            tbCustName.Text = customer.Name;

            statisticTabMonthly = StatisticTabMonthly.NewInstance(this.ObjectId);
            statisticTabByDate  = StatisticTabByDate.NewInstance(this.ObjectId, customerNames);

            mTabHost             = (TabHost)view.FindViewById(Resource.Id.tabhost);
            mTabHost.TabChanged += TabHostHandleTabChanged;
            mTabHost.Setup();
            InitializeTab(view);

            GC.Collect();
            return(view);
        }
Esempio n. 2
0
        public static StatisticTabByDate NewInstance(long objId, string[] custNames)
        {
            var detailsFrag = new StatisticTabByDate {
                Arguments = new Bundle()
            };

            detailsFrag.Arguments.PutLong("ObjectId", objId);
            detailsFrag.customerNames = custNames;

            return(detailsFrag);
        }