示例#1
0
        /// <summary>
        /// the constructor for PathwayView.
        /// set the handler of event and user control.
        /// </summary>
        public PathwayControl(PathwayWindow window)
        {
            this.m_window = window;
            // Create Internal object.
            m_canvas = null;
            m_csManager = new ComponentManager();
            SetNodeIcons();
            // Create menus
            m_menu = new MenuControl(this);
            // Set AnimationControl
            m_animCon = new AnimationControl(this);
            // Preparing Interfaces
            m_pathwayView = new PathwayView(this);
            m_layerView = new LayerView(this);
            m_toolBox = new Stencils(this);
            m_layout = new LayoutPane(m_window.Environment);
            m_layout.ApplyButton.Click += new EventHandler(ApplyButton_Click);

            m_window.PluginManager.Refresh += new EventHandler(PluginManager_Refresh);
        }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="csManager"></param>
 public ComponentDialog(ComponentManager csManager)
     : this()
 {
     m_csManager = csManager;
 }
示例#3
0
 public void TearDown()
 {
     _unitUnderTest = null;
 }
示例#4
0
 public void TestConstructorComponentManager()
 {
     ComponentManager testComponentManager = new ComponentManager();
     Assert.IsNotNull(testComponentManager, "Constructor of type, ComponentManager failed to create instance.");
     Assert.Fail("Create or modify test(s).");
 }
示例#5
0
 public void SetUp()
 {
     _unitUnderTest = new ComponentManager();
 }