public AddItemPresenter(IAddItemView p_view, IItemDao p_itemDao)
        {
            m_view = p_view;
            m_itemDao = p_itemDao;

            ItemDataEntity itemDataEntity = new ItemDataEntity();
            ItemViewModel itemViewModel = new ItemViewModel(itemDataEntity);

            m_itemCategoryDao = new ItemCategoryDao();
            m_itemGenericDao = new ItemGenericDao();

            m_viewModel = itemViewModel;
            m_view.ShowItem(m_viewModel);
        }
예제 #2
0
 //TODO: Attach MessageService with MessageboxProvider
 public void ShowItem(ItemViewModel itemViewModel)
 {
     itemViewModelBindingSource.DataSource = itemViewModel;
 }