Пример #1
0
        private void CreateBufferControls()
        {
            m_BufferManager = new BufferPluginManager();

            m_Buffers = m_BufferManager.GetInstances();

            foreach (BufferInstance buffer in m_Buffers)
            {
                BufferParameter filterParam = new BufferParameter(XrayImage_Panel, m_History);
                try
                {
                    buffer.Instance.Initialize(filterParam);

                    Buffer_ToolBar.Items.Add(buffer.Instance.ToolBarItem);

                    Button button = buffer.Instance.ToolBarItem as Button;
                    if (button != null)
                    {
                        button.Click += new RoutedEventHandler(BufferButton_Clicked);
                    }
                }
                catch
                {
                    //TODO: Error Logs
                }
            }
        }
Пример #2
0
        private void CreateBufferControls ()
        {
            m_BufferManager = new BufferPluginManager();

            m_Buffers = m_BufferManager.GetInstances();

            foreach (BufferInstance buffer in m_Buffers)
            {
                BufferParameter filterParam = new BufferParameter(XrayImage_Panel, m_History);
                try
                {
                    buffer.Instance.Initialize(filterParam);

                    Buffer_ToolBar.Items.Add(buffer.Instance.ToolBarItem);

                    Button button = buffer.Instance.ToolBarItem as Button;
                    if (button != null)
                    {
                        button.Click += new RoutedEventHandler(BufferButton_Clicked);
                    }
                }
                catch
                {
                    //TODO: Error Logs
                }
            }
        }