private void ListBoxMaterialTrackingBatch_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            this.SaveSlideTrackingLog();
            this.m_AccessionSlideOrderViewCollection.Clear();
            this.m_SlideTrackingLogCollection.Clear();

            if (this.ListBoxMaterialTrackingBatch.SelectedItem != null)
            {
                YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch = (YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch) this.ListBoxMaterialTrackingBatch.SelectedItem;
                this.m_AccessionSlideOrderViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetAccessionSlideOrderViewCollectionByBatchId(materialTrackingBatch.MaterialTrackingBatchId);
                this.SlideCount   = this.m_AccessionSlideOrderViewCollection.Count;
                this.m_LocationId = this.GetLocationId(materialTrackingBatch.Description);
                NotifyPropertyChanged("AccessionSlideOrderViewCollection");
            }
        }
        public MaterialTrackingDialog()
        {
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_AccessionSlideOrderViewCollection = new Business.View.AccessionSlideOrderViewCollection();
            this.m_MaterialLocationCollection        = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialLocationCollection();
            this.m_MaterialTrackingBatchCollection   = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection();

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;
            this.m_BarcodeScanPort.HistologySlideScanReceived += HistologySlideScanReceived;
            this.m_SlideTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection();

            this.Closing += new CancelEventHandler(MaterialTrackingDialog_Closing);
            InitializeComponent();
            DataContext = this;
        }
        public MaterialTrackingDialog()
        {
            this.m_SystemIdentity = Business.User.SystemIdentity.Instance;

            this.m_AccessionSlideOrderViewCollection = new Business.View.AccessionSlideOrderViewCollection();
            this.m_MaterialLocationCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialLocationCollection();
            this.m_MaterialTrackingBatchCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetMaterialTrackingBatchCollection();

            this.m_BarcodeScanPort = YellowstonePathology.Business.BarcodeScanning.BarcodeScanPort.Instance;
            this.m_BarcodeScanPort.HistologySlideScanReceived += HistologySlideScanReceived;
            this.m_SlideTrackingLogCollection = new YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingLogCollection();

            this.Closing += new CancelEventHandler(MaterialTrackingDialog_Closing);
            InitializeComponent();
            DataContext = this;
        }
        private void ListBoxMaterialTrackingBatch_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            this.SaveSlideTrackingLog();
            this.m_AccessionSlideOrderViewCollection.Clear();
            this.m_SlideTrackingLogCollection.Clear();

            if (this.ListBoxMaterialTrackingBatch.SelectedItem != null)
            {
                YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch materialTrackingBatch = (YellowstonePathology.Business.MaterialTracking.Model.MaterialTrackingBatch)this.ListBoxMaterialTrackingBatch.SelectedItem;
                this.m_AccessionSlideOrderViewCollection = YellowstonePathology.Business.Gateway.SlideAccessionGateway.GetAccessionSlideOrderViewCollectionByBatchId(materialTrackingBatch.MaterialTrackingBatchId);
                this.SlideCount = this.m_AccessionSlideOrderViewCollection.Count;
                this.m_LocationId = this.GetLocationId(materialTrackingBatch.Description);
                NotifyPropertyChanged("AccessionSlideOrderViewCollection");
            }
        }