Exemplo n.º 1
0
        private void lPartMidYTbx_TextChanged(object sender, EventArgs e)
        {
            if ((!lChangingFromControl) && (lCurrDesignElement != null))
            {
                if (lCurrDesignElement.AttachmentPoint != null)
                {
                    // GWH DEBUG--
                    System.Diagnostics.Debug.WriteLine("lPartMidYTbx_TextChanged:  attachment");
                    // --GWH DEBUG
                    lCurrDesignElement.AttachmentPoint.OwnY.Value = StringHandler.SafeStringToDouble(lPartMidYTbx.Text);
                }
                else
                {
                    // GWH DEBUG--
                    System.Diagnostics.Debug.WriteLine("lPartMidYTbx_TextChanged:  midpoint");
                    // --GWH DEBUG
                    lCurrDesignElement.Midpoint.Y = StringHandler.SafeStringToDouble(lPartMidYTbx.Text);
                }

                ListViewItem lvitem = lGetLVItemForCurrentDesignElement();
                lvitem.SubItems[4].Text = lGetAttachmentLVStringText(lCurrDesignElement);
                lDesignObject.UpdatePointsForElement(lCurrDesignElement);
                lDesignCtrl.ForceRedraw();
            }
        }
Exemplo n.º 2
0
 private void lPartAttZTbx_TextChanged(object sender, EventArgs e)
 {
     if ((!lChangingFromControl) && (lCurrDesignElement != null) && (lCurrDesignElement.AttachmentPoint != null))
     {
         lCurrDesignElement.AttachmentPoint.AttZ.Value = StringHandler.SafeStringToDouble(lPartAttZTbx.Text);
         ListViewItem lvitem = lGetLVItemForCurrentDesignElement();
         lvitem.SubItems[4].Text = lGetAttachmentLVStringText(lCurrDesignElement);
         lDesignObject.UpdatePointsForElement(lCurrDesignElement);
         lDesignCtrl.ForceRedraw();
     }
 }