示例#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);
            }
示例#2
0
 public TablesViewModel(int position,
                        TablesFragmentViewInterface view,
                        TablesInteractor Interactor)
 {
     mPosition = position;
     mView     = view;
     mView.setViewModel(this);
     mInteractor = Interactor;
 }