Exemple #1
0
        private void angleButton_Click(object sender, EventArgs e)
        {
            StraightLeg leg = (CurrentFace.Leg as StraightLeg);

            if (leg == null)
            {
                return;
            }

            using (AngleForm dial = new AngleForm(leg))
            {
                if (dial.ShowDialog() == DialogResult.OK)
                {
                    if (dial.IsDeflection)
                    {
                        leg.SetDeflection(dial.SignedAngle);
                    }
                    else
                    {
                        leg.StartAngle = dial.SignedAngle;
                    }

                    m_Edits.SetStartAngle(m_CurFaceIndex, dial.SignedAngle, dial.IsDeflection);
                    Rework();
                }
            }
        }