Exemplo n.º 1
0
            public override SupportFragment GetItem(int position)
            {
                TablesFragmentView tablesFragmentView = TablesFragmentView.NewInstance(position);

                TablesInteractor tablesInteractor = new TablesInteractor(ApplicationContext);

                new TablesViewModel(position, tablesFragmentView, tablesInteractor);
                return(tablesFragmentView);
            }
Exemplo n.º 2
0
        public static TablesFragmentView NewInstance(int position)
        {
            TablesFragmentView tablesFragmentView = new TablesFragmentView();

            Bundle args = new Bundle();

            args.PutInt(ARG_PAGE, position);
            tablesFragmentView.Arguments = args;
            return(tablesFragmentView);
        }
Exemplo n.º 3
0
        public void showDateDialog(int id)
        {
            DatePickerFragment frag = DatePickerFragment.NewInstance(delegate(DateTime time)
            {
                if (id == 0)
                {
                    TablesFragmentView fragment = (TablesFragmentView)mFragmentAdapter.getRegisteredFragment(mViewPager.CurrentItem);
                    fragment.setdateSOAT(time);
                }
                else
                {
                    TablesFragmentView fragment = (TablesFragmentView)mFragmentAdapter.getRegisteredFragment(mViewPager.CurrentItem);
                    fragment.setdateRevTecnica(time);
                }
            });

            frag.Show(FragmentManager, DatePickerFragment.TAG);
        }