public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
 {
     var view = inflater.Inflate(Resource.Layout.fragment_orderscategory, container, false);
     ToolbarHelper.SetToolbarStyle($"Заказ-наряды", false);
     (this.Activity as MenuActivity).ShowToolbar();
     GetElements(view);
     InitData();
     return view;
 }
Example #2
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.fragment_makeorder, null);

            ToolbarHelper.SetToolbarStyle("Создание заказ-наряда", false);
            GetElements(view);
            SetEventHandlers();
            InitData();
            return(view);
        }
Example #3
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.fragment_chooseordertime, container, false);

            ToolbarHelper.SetToolbarStyle("Выбор времени", true, this);
            GetElements(view);
            InitData();
            SetEventHandlers();
            return(view);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.fragment_order, container, false);

            ToolbarHelper.SetToolbarStyle($"Предзказ №{orderId}", false);
            GetElements(view);
            GetSubModels();
            InitData();
            return(view);
        }
Example #5
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.fragment_userprofile, container, false);

            ToolbarHelper.SetToolbarStyle("Профиль", false);
            GetElements(view);
            InitData();
            SetEventHandlers();
            return(view);
        }
Example #6
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.fragment_notifications, container, false);

            presenter = new NotifPresenter()
            {
                View = this
            };
            ViewInjector.Inject(this, view);
            StyleView();
            ToolbarHelper.SetToolbarStyle("Уведомления", false);
            (this.Activity as MenuActivity).ShowToolbar();
            return(view);
        }
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            var view = inflater.Inflate(Resource.Layout.fragment_garage, null);

            presenter = new GaragePresenter()
            {
                View = this
            };
            ViewInjector.Inject(this, view);
            StyleView();
            ToolbarHelper.SetToolbarStyle("√араж", false);
            (this.Activity as MenuActivity).HideToolbar();
            garageViewPager.PageSelected += GarageViewPager_PageSelected;
            return(view);
        }
 private void GetElements(View view)
 {
     ordersViewPager = view.FindViewById<ViewPager>(Resource.Id.ordersViewPager);
     ci = view.FindViewById<CircleIndicator>(Resource.Id.indicator_default);
     ordersViewPager.PageSelected += (s, e) =>
     {
         switch (e.Position)
         {
             case 0:
                 ToolbarHelper.SetToolbarStyle($"Активные заказы", false);
                 break;
             case 1:
                 ToolbarHelper.SetToolbarStyle($"Предзаказы", false);
                 break;
             case 2:
                 ToolbarHelper.SetToolbarStyle($"Черновики", false);
                 break;
         }
     };
 }