예제 #1
0
        public async void EditProductClicked()
        {
            Product ProductEntity = await m_ProductDao.GetById(m_view.ModelId);

            m_viewModel = new ProductViewModel(ProductEntity);
            m_view.ShowModel(m_viewModel);
        }
예제 #2
0
        public ProductPresenter(IProductView p_view)
        {
            m_view = p_view;
            PopulateData();
            Product          productDataEntity = new Product();
            ProductViewModel productViewModel  = new ProductViewModel(productDataEntity);

            m_view.MyModel = productViewModel;
            m_view.ShowModel(productViewModel);
        }