Ejemplo n.º 1
0
        public EditLimits(SkeletalJoint_Base joint)
        {
            InitializeComponent();
            IEnumerator <AngularDOF> angularDOF = joint.GetAngularDOF().GetEnumerator();
            {
                int  i          = 0;
                bool hasAnother = angularDOF.MoveNext();
                while (hasAnother)
                {
                    tabDOF.TabPages.Add(new LimitPane <AngularDOF>(
                                            angularDOF.Current, "Angular" + ((hasAnother = angularDOF.MoveNext()) ? " #" + (++i) : "")));
                }
            }
            IEnumerator <LinearDOF> linearDOF = joint.GetLinearDOF().GetEnumerator();

            {
                int  i          = 0;
                bool hasAnother = linearDOF.MoveNext();
                while (hasAnother)
                {
                    tabDOF.TabPages.Add(new LimitPane <LinearDOF>(
                                            linearDOF.Current, "Linear" + ((hasAnother = linearDOF.MoveNext()) ? " #" + (++i) : "")));
                }
            }
            base.Text = joint.GetType().Name.Replace("_Base", "").Replace("Joint", " Joint");

            FormClosing += delegate(object sender, FormClosingEventArgs e) { LegacyInterchange.LegacyEvents.OnRobotModified(); };
        }
Ejemplo n.º 2
0
        public EditLimits(SkeletalJoint_Base joint)
        {
            InitializeComponent();
            IEnumerator <AngularDOF> angularDOF = joint.GetAngularDOF().GetEnumerator();
            {
                int  i          = 0;
                bool hasAnother = angularDOF.MoveNext();
                while (hasAnother)
                {
                    tabDOF.TabPages.Add(new LimitPane <AngularDOF>(
                                            angularDOF.Current, "Angular" + ((hasAnother = angularDOF.MoveNext()) ? " #" + (++i) : "")));
                }
            }
            IEnumerator <LinearDOF> linearDOF = joint.GetLinearDOF().GetEnumerator();

            {
                int  i          = 0;
                bool hasAnother = linearDOF.MoveNext();
                while (hasAnother)
                {
                    tabDOF.TabPages.Add(new LimitPane <LinearDOF>(
                                            linearDOF.Current, "Linear" + ((hasAnother = linearDOF.MoveNext()) ? " #" + (++i) : "")));
                }
            }
            base.Text = joint.GetType().Name.Replace("_Base", "").Replace("Joint", " Joint");
        }