private void InitTabRegion(long ID)
        {
            if (ID == 0)
            {
                return;
            }

            ObservableCollection <GITransaction> lst = new ObservableCollection <GITransaction>();

            foreach (var obj in giTransServices.GetGITransaction(ID))
            {
                lst.Add(obj);
            }

            IRegion tabRegion = regionManager.Regions[RegionNames.TabRegionGI];

            if (tabRegion == null)
            {
                return;
            }

            GIDetailsSummaryView     summryView = tabRegion.GetView("GIDetailsSummaryView") as GIDetailsSummaryView;
            GIDetailsTransactionView trnxView   = tabRegion.GetView("GIDetailsTransactionView") as GIDetailsTransactionView;

            if (summryView == null && trnxView == null)
            {
                summryView = this.container.Resolve <GIDetailsSummaryView>();
                trnxView   = this.container.Resolve <GIDetailsTransactionView>();

                tabRegion.Add(summryView, "GIDetailsSummaryView");
                tabRegion.Add(trnxView, "GIDetailsTransactionView");
            }
            tabRegion.Activate(summryView);

            GIDetailsSummaryViewModel     summryVM = summryView.DataContext as GIDetailsSummaryViewModel;
            GIDetailsTransactionViewModel trnxVM   = trnxView.DataContext as GIDetailsTransactionViewModel;

            if (summryVM != null && trnxVM != null)
            {
                summryVM.summryCollection = lst;
                trnxVM.trnxCollection     = lst;
            }
        }
        public GIDetailsSummaryView(GIDetailsSummaryViewModel viewModel)
        {
            InitializeComponent();

            this.DataContext = viewModel;
        }