コード例 #1
0
        public FragmentDataDisplay(XRayDisplays xrayDisplays)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            m_XrayImageDisplay = xrayDisplays;

            //============ lisview settings
            _TypeCollection.Add("Not Specified");
            _TypeCollection.Add("Metal");
            _TypeCollection.Add("Organic");
            _TypeCollection.Add("Inorganic");

            _ShapeCollection.Add("Not Specified");
            _ShapeCollection.Add("Cylindical");
            _ShapeCollection.Add("Rectangular");
            _ShapeCollection.Add("C Shape");

            _SizeCollection.Add("Not Specified");
            _SizeCollection.Add(" < 4 mm");
            _SizeCollection.Add("5mm-8mm");
            _SizeCollection.Add("9mm-12mm");
            _SizeCollection.Add("13mm-16mm");
            _SizeCollection.Add("17mm-20mm");
            _SizeCollection.Add(">20mm");

            for (int i = 0; i < 99; i++)
            {
                DataPoint dp = new DataPoint(i + 1, 0);
                UniformityChartSeries.Points.Add(dp);
            }
        }
コード例 #2
0
        public FragmentDataDisplay(XRayDisplays xrayDisplays)
        {
            InitializeComponent();
            CultureResources.registerDataProvider(this);

            m_XrayImageDisplay = xrayDisplays;

            //============ lisview settings
            _TypeCollection.Add("Not Specified");
            _TypeCollection.Add("Metal");
            _TypeCollection.Add("Organic");
            _TypeCollection.Add("Inorganic");

            _ShapeCollection.Add("Not Specified");
            _ShapeCollection.Add("Cylindical");
            _ShapeCollection.Add("Rectangular");
            _ShapeCollection.Add("C Shape");

            _SizeCollection.Add("Not Specified");
            _SizeCollection.Add(" < 4 mm");
            _SizeCollection.Add("5mm-8mm");
            _SizeCollection.Add("9mm-12mm");
            _SizeCollection.Add("13mm-16mm");
            _SizeCollection.Add("17mm-20mm");
            _SizeCollection.Add(">20mm");

            for (int i = 0; i < 99; i++)
            {
                DataPoint dp = new DataPoint(i + 1, 0);
                UniformityChartSeries.Points.Add(dp);
            }
        }
コード例 #3
0
ファイル: Plugin.cs プロジェクト: BdGL3/CXPortal
        public void Initialize(Object passedObj)
        {
            ContentParameter parameters = passedObj as ContentParameter;
            m_CaseObj = parameters.caseObject;
            SysConfiguration SysConfig = parameters.SysConfig;

            if (m_CaseObj.attachments.CountofType(AttachmentType.XRayImage) > 0)
            {
                m_XrayDisplays = new XRayDisplays(m_CaseObj, SysConfig);
                m_UserControlDisplays = m_XrayDisplays.Displays;

                foreach (LayoutInfo layoutInfo in m_UserControlDisplays)
                {
                    layoutInfo.StatusItems = m_XrayDisplays.statusBarItems.StatusDisplay;
                }
                

                LayoutInfo framentDataDisplay = new LayoutInfo();
                framentDataDisplay.Name = "Fragment Data";
                framentDataDisplay.Panel = PanelAssignment.SecondaryPanel;
                framentDataDisplay.Display = m_XrayDisplays.FragmentDataDisplay;

                m_UserControlDisplays.Add(framentDataDisplay);
            }
            else
            {
                throw new NotSupportedException();
            }
        }
コード例 #4
0
ファイル: Plugin.cs プロジェクト: marzlia/CXPortal
        public void Initialize(Object passedObj)
        {
            ContentParameter parameters = passedObj as ContentParameter;

            m_CaseObj = parameters.caseObject;
            SysConfiguration SysConfig = parameters.SysConfig;

            if (m_CaseObj.attachments.CountofType(AttachmentType.XRayImage) > 0)
            {
                m_XrayDisplays        = new XRayDisplays(m_CaseObj, SysConfig);
                m_UserControlDisplays = m_XrayDisplays.Displays;

                foreach (LayoutInfo layoutInfo in m_UserControlDisplays)
                {
                    layoutInfo.StatusItems = m_XrayDisplays.statusBarItems.StatusDisplay;
                }


                LayoutInfo framentDataDisplay = new LayoutInfo();
                framentDataDisplay.Name    = "Fragment Data";
                framentDataDisplay.Panel   = PanelAssignment.SecondaryPanel;
                framentDataDisplay.Display = m_XrayDisplays.FragmentDataDisplay;

                m_UserControlDisplays.Add(framentDataDisplay);
            }
            else
            {
                throw new NotSupportedException();
            }
        }