コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }