public void OnShowDefaultStoreGroup() { storeGroupData = new EclipsePOS.WPF.SystemManager.Data.StoreGroupDataSet(); taStoreGroupData = new EclipsePOS.WPF.SystemManager.Data.StoreGroupDataSetTableAdapters.RetailStoreGroupTableAdapter(); taStoreGroupData.Fill(storeGroupData.RetailStoreGroup); View.SetStoreGroupDataContext(storeGroupData.RetailStoreGroup); }
public void OnShowStoreGroup() { //StoreGroup storeGroupData = new EclipsePOS.WPF.SystemManager.Data.StoreGroupDataSet(); EclipsePOS.WPF.SystemManager.Data.StoreGroupDataSetTableAdapters.RetailStoreGroupTableAdapter storeGroupTa = new EclipsePOS.WPF.SystemManager.Data.StoreGroupDataSetTableAdapters.RetailStoreGroupTableAdapter(); storeGroupTa.Fill(storeGroupData.RetailStoreGroup); View.SetStoreGroupDataContext(storeGroupData.RetailStoreGroup); _colView = CollectionViewSource.GetDefaultView(storeGroupData.RetailStoreGroup) as CollectionView; taManager.RetailStoreGroupTableAdapter = storeGroupTa; View.SetMoveToFirstBtnDataContext(MoveToFirstCommand); View.SetMoveToPreviousBtnDataContext(MoveToPreviousCommand); View.SetMoveToNextBtnDataContext(MoveToNextCommand); View.SetMoveToLastBtnDataContext(MoveToLastCommand); View.SetDeleteBtnDataContext(DeleteCommand); View.SetAddBtnDataContext(AddCommand); View.SetRevertBtnDataContext(RevertCommand); View.SetSaveBtnDataContext(SaveCommand); }