コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the CreatePhysicsGroupTabPage class.
        /// </summary>
        /// <param name="physicsGroupsTabControl"></param>
        /// <param name="name"></param>
        public CreatePropertySetTabPage(PropertySetsTabControl physicsGroupsTabControl, string name)
        {
            InitializeComponent();

            parentTabControl = physicsGroupsTabControl;

            childForm = new CreatePropertySetForm(this);
            Controls.Add(childForm);

            Text = Name = name;
        }
コード例 #2
0
        /// <summary>
        /// Initalizes the component with a specified parent and name.
        /// </summary>
        /// <param name="physicsGroupsTabControl"></param>
        /// <param name="name"></param>
        public ComponentPropertiesTabPage(PropertySetsTabControl physicsGroupsTabControl, string name)
        {
            InitializeComponent();

            parentControl = physicsGroupsTabControl;

            SetName(name);

            ChildForm = new ComponentPropertiesForm(this);
            Controls.Add(ChildForm);

            rightClickMenu = new ContextMenu();
            rightClickMenu.MenuItems.Add(new MenuItem("Delete", new EventHandler(deleteMenuItem_onClick)));
            rightClickMenu.MenuItems.Add(new MenuItem("Change Name", new EventHandler(changeNameMenuItem_onClick)));
        }