Пример #1
0
        public XRayDisplays(CaseObject caseObj, SysConfiguration SysConfig)
        {
            m_CaseObj            = caseObj;
            m_SysConfig          = SysConfig;
            m_statusBarItems     = new StatusBarItems();
            m_HistogramDisplay   = new HistogramDisplay();
            Displays             = new List <LayoutInfo>();
            FragmentMarkInfoList = new Collection <FragmentObject>();

            m_FragmentDataDisplay = new FragmentDataDisplay(this);

            foreach (DataAttachment attachment in caseObj.attachments.GetUnknownAttachments())
            {
                if (attachment.attachmentId == "FragmentDataTable.csv")
                {
                    byte[] fragmentData = new byte[attachment.attachmentData.Length];
                    attachment.attachmentData.Read(fragmentData, 0, fragmentData.Length);

                    FragmentMarkInfoList = m_FragmentDataDisplay.UpdateDisplay(fragmentData);
                }
            }

            StatusBarItem caseIDStatus = new StatusBarItem();

            caseIDStatus.Content = "Case ID :" + m_CaseObj.CaseId;
            m_statusBarItems.StatusDisplay.Add(caseIDStatus);

            Initialize();
        }
Пример #2
0
        public XRayDisplays (CaseObject caseObj, SysConfiguration SysConfig)
        {
            m_CaseObj = caseObj;
            m_SysConfig = SysConfig;
            m_statusBarItems = new StatusBarItems();
            m_HistogramDisplay = new HistogramDisplay();
            Displays = new List<LayoutInfo>();
            FragmentMarkInfoList = new Collection<FragmentObject>();

            m_FragmentDataDisplay = new FragmentDataDisplay(this);            

            foreach (DataAttachment attachment in caseObj.attachments.GetUnknownAttachments())
            {                
                if (attachment.attachmentId == "FragmentDataTable.csv")
                {
                    byte[] fragmentData = new byte[attachment.attachmentData.Length];
                    attachment.attachmentData.Read(fragmentData, 0, fragmentData.Length);
                    
                    FragmentMarkInfoList = m_FragmentDataDisplay.UpdateDisplay(fragmentData);
                }
            }

            StatusBarItem caseIDStatus = new StatusBarItem();
            caseIDStatus.Content = "Case ID :" + m_CaseObj.CaseId;
            m_statusBarItems.StatusDisplay.Add(caseIDStatus);

            Initialize();
        }